Click or drag to resize
NullableGetUnderlyingType Method
Returns the underlying type argument of the specified nullable type.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static Type GetUnderlyingType(
	Type nullableType
)

Parameters

nullableType
Type: SystemType
A Type object that describes a closed generic nullable type.

Return Value

Type: Type
The type argument of the nullableType parameter, if the nullableType parameter is a closed generic nullable type; otherwise, null.
Exceptions
ExceptionCondition
ArgumentNullExceptionnullableType is null.
See Also