test if parameter supports null reflection code example
Example: test if parameter supports null reflection
bool canBeNull = !type.IsValueType || (Nullable.GetUnderlyingType(type) != null);
bool canBeNull = !type.IsValueType || (Nullable.GetUnderlyingType(type) != null);