I don't really know what to add to the title, I'd like to get the Type (T) of a Nullable. For example, I got a an object whose Type is Nullable and I'd like to get something like "System.Int32" (the type of course, not the string)
Try this : Nullable.GetUnderylingType(myType)
FYI : myType must be a Type
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With