public static bool IsNullableType(this CodeTypeReference reference) { return Type.GetType(reference.BaseType) == typeof(Nullable<>); }