Class NullableTypeExtensions
- Namespace
- LinqToDB.Internal.Extensions
- Assembly
- linq2db.dll
public static class NullableTypeExtensions
- Inheritance
-
objectNullableTypeExtensions
Methods
AsNullable(Type)
Wraps type into Nullable<T> class.
public static Type AsNullable(this Type type)
Parameters
typeTypeValue type to wrap. Must be value type (except Nullable<T> itself).
Returns
- Type
Type, wrapped by Nullable<T>.
MakeNullable(Type)
public static Type MakeNullable(this Type type)
Parameters
typeType
Returns
UnwrapNullableType(Type)
public static Type UnwrapNullableType(this Type type)
Parameters
typeType