C# Class Remotion.Utilities.NullableTypeUtility

显示文件 Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
GetBasicType ( Type type ) : Type
GetNullableType ( Type type ) : Type
IsNullableType ( Type type ) : bool

Determines whether a type is nullable, ie. whether variables of it can be assigned .

A type is nullable if it is a reference type or a nullable value type. This method returns false only for non-nullable value types.

Private Methods

Method Description
IsNullableType_NoArgumentCheck ( Type expectedType ) : bool

Method Details

GetBasicType() public static method

public static GetBasicType ( Type type ) : Type
type System.Type
return System.Type

GetNullableType() public static method

public static GetNullableType ( Type type ) : Type
type System.Type
return System.Type

IsNullableType() public static method

Determines whether a type is nullable, ie. whether variables of it can be assigned .
A type is nullable if it is a reference type or a nullable value type. This method returns false only for non-nullable value types.
public static IsNullableType ( Type type ) : bool
type System.Type The type to check.
return bool