Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

test if parameter supports null reflection

bool canBeNull = !type.IsValueType || (Nullable.GetUnderlyingType(type) != null);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #test #parameter #supports #null #reflection
ADD COMMENT
Topic
Name
6+6 =