NullableGetUnderlyingType Method |
Returns the underlying type argument of the specified nullable type.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static Type GetUnderlyingType(
Type nullableType
)
Parameters
- nullableType
- Type: SystemType
A Type object that describes a closed generic nullable type.
Return Value
Type:
TypeThe type argument of the
nullableType parameter, if the
nullableType parameter is a closed generic nullable type; otherwise, null.
Exceptions See Also