System::NullableUtils::GetUnderlyingType method

NullableUtils::GetUnderlyingType method

返回指定可空类型的底层类型参数。

static const System::TypeInfo & System::NullableUtils::GetUnderlyingType(const System::TypeInfo &nullableType)
ParameterType描述
nullableTypeconst System::TypeInfo&一个描述封闭泛型可空类型的 System.Type 对象。

ReturnValue

如果 nullableType 参数是封闭的泛型可空类型,则返回 nullableType 参数的类型参数;否则返回 null

另见