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
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