Q:

test if parameter supports null reflection

bool canBeNull = !type.IsValueType || (Nullable.GetUnderlyingType(type) != null);
0

New to Communities?

Join the community