System::NullableUtils::GetUnderlyingType 方法

NullableUtils::GetUnderlyingType method

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

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

ReturnValue

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

另见