Creates a nullable type from the current IType. If the current type is already nullable, returns the current type.
If the type is a value type, returns a Nullable<T> of this type.
Declaration
public static IType ToNullableType(this IType type)
Parameters
Type |
Name |
Description |
IType |
type |
|
Returns
Creates a nullable type from the current INamedType. If the current type is already nullable, returns the current type.
If the type is a value type, returns a Nullable<T> of this type.
Declaration
public static INamedType ToNullableType(this INamedType type)
Parameters
Returns
Creates a nullable type from the current IArrayType. If the current type is already nullable, returns the current type.
Declaration
public static IArrayType ToNullableType(this IArrayType type)
Parameters
Returns
Creates a nullable type from the current IDynamicType. If the current type is already nullable, returns the current type.
Declaration
public static IDynamicType ToNullableType(this IDynamicType type)
Parameters
Returns