Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
test if parameter supports null reflection
John M. Landsberg
Programming language:
TypeScript
2021-04-20 13:34:07
0
Q:
test if parameter supports null reflection
Leslie
Code:
TypeScript
2021-09-10 22:50:21
bool canBeNull = !type.IsValueType || (Nullable.GetUnderlyingType(type) != null);
0
New to Communities?
Join the community