Metalama//API Documentation/Aspect API/Metalama.​Framework.​Code/Type­Factory/To­Non­Nullable­Type
Open sandboxFocus

Method ToNonNullableType

ToNonNullableType<T>(T)

Returns the non-nullable type from the current type. If the current type is a non-nullable reference type, returns the current type. If the current type is a Nullable<T>, i.e. a nullable value type, returns the underlying type.

Declaration
public static T ToNonNullableType<T>(this T type)
where T : IType
Parameters
Type Name Description
T type
Returns
Type Description
T
Type Parameters
Name Description
T