public static bool IsNullableOrReferenceType(this Type type) { return !type.GetTypeInfo().IsValueType || IsNullableType(type); }