Table of Contents

Class NullableTypeExtensions

Namespace
LinqToDB.Internal.Extensions
Assembly
linq2db.dll
public static class NullableTypeExtensions
Inheritance
object
NullableTypeExtensions

Methods

AsNullable(Type)

Wraps type into Nullable<T> class.

public static Type AsNullable(this Type type)

Parameters

type Type

Value 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

type Type

Returns

Type

UnwrapNullableType(Type)

public static Type UnwrapNullableType(this Type type)

Parameters

type Type

Returns

Type