CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
System::NullableUtils Class Referencefinal

Represents C# System.Nullable (with no type arguments) static class. Unable to use original name due inability to overload class templates in C++. Supports a value type that can be assigned null. This class cannot be inherited. More...

#include <nullable.h>

Static Public Member Functions

static const System::TypeInfoGetUnderlyingType (const System::TypeInfo &nullableType)
 Returns the underlying type argument of the specified nullable type. More...
 

Detailed Description

Represents C# System.Nullable (with no type arguments) static class. Unable to use original name due inability to overload class templates in C++. Supports a value type that can be assigned null. This class cannot be inherited.

Member Function Documentation

◆ GetUnderlyingType()

static const System::TypeInfo & System::NullableUtils::GetUnderlyingType ( const System::TypeInfo nullableType)
static

Returns the underlying type argument of the specified nullable type.

Parameters
nullableTypeA System.Type object that describes a closed generic nullable type.
Returns
The type argument of the nullableType parameter, if the nullableType parameter is a closed generic nullable type; otherwise, null