0

I have a Type-object, myType. Is there a way to check if null can be assigned to an instance of said type?

if (CanAssignNull(myType))
    // can assign null
else
    // cannot assign null
Spans
  • 364
  • 7
  • 17

0 Answers0