C# Class Remotion.Utilities.NullableTypeUtility

Afficher le fichier Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
IsNullableType_NoArgumentCheck ( Type expectedType ) : bool

Method Details

GetBasicType() public static méthode

public static GetBasicType ( Type type ) : Type
type System.Type
Résultat System.Type

GetNullableType() public static méthode

public static GetNullableType ( Type type ) : Type
type System.Type
Résultat System.Type

IsNullableType() public static méthode

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.
Résultat bool