C# Class SpecExpress.Util.TypeExtensions

Afficher le fichier Open project: rbell/SpecExpress

Méthodes publiques

Méthode Description
AllInterfaces ( this type ) : IEnumerable
CanBeCastTo ( this pluggedType, Type pluginType ) : bool

Determines if the pluggedType can be upcast to the pluginType

Closes ( this type, Type openType ) : bool
FindFirstInterfaceThatCloses ( this pluggedType, Type templateType ) : Type
FindInterfacesThatClose ( this pluggedType, Type templateType ) : IEnumerable
GenericCanBeCast ( Type pluginType, Type pluggedType ) : bool
GetFullName ( this type ) : string
GetInnerTypeFromNullable ( this nullableType ) : Type
GetName ( this type ) : string
ImplementsInterfaceTemplate ( this pluggedType, Type templateType ) : bool
IsAutoFillable ( this type ) : bool
IsChild ( this type ) : bool
IsChildArray ( this type ) : bool
IsConcrete ( this type ) : bool
IsConcreteAndAssignableTo ( this pluggedType, Type pluginType ) : bool
IsInNamespace ( this type, string nameSpace ) : bool
IsNullable ( this type ) : bool
IsOpenGeneric ( this type ) : bool
IsPrimitive ( this type ) : bool
IsPrimitiveArray ( this type ) : bool
IsSimple ( this type ) : bool
IsString ( this type ) : bool

Private Methods

Méthode Description
checkGenericType ( Type pluggedType, Type pluginType ) : bool

Method Details

AllInterfaces() public static méthode

public static AllInterfaces ( this type ) : IEnumerable
type this
Résultat IEnumerable

CanBeCastTo() public static méthode

Determines if the pluggedType can be upcast to the pluginType
public static CanBeCastTo ( this pluggedType, Type pluginType ) : bool
pluggedType this
pluginType System.Type
Résultat bool

Closes() public static méthode

public static Closes ( this type, Type openType ) : bool
type this
openType System.Type
Résultat bool

FindFirstInterfaceThatCloses() public static méthode

public static FindFirstInterfaceThatCloses ( this pluggedType, Type templateType ) : Type
pluggedType this
templateType System.Type
Résultat System.Type

FindInterfacesThatClose() public static méthode

public static FindInterfacesThatClose ( this pluggedType, Type templateType ) : IEnumerable
pluggedType this
templateType System.Type
Résultat IEnumerable

GenericCanBeCast() public static méthode

public static GenericCanBeCast ( Type pluginType, Type pluggedType ) : bool
pluginType System.Type
pluggedType System.Type
Résultat bool

GetFullName() public static méthode

public static GetFullName ( this type ) : string
type this
Résultat string

GetInnerTypeFromNullable() public static méthode

public static GetInnerTypeFromNullable ( this nullableType ) : Type
nullableType this
Résultat System.Type

GetName() public static méthode

public static GetName ( this type ) : string
type this
Résultat string

ImplementsInterfaceTemplate() public static méthode

public static ImplementsInterfaceTemplate ( this pluggedType, Type templateType ) : bool
pluggedType this
templateType System.Type
Résultat bool

IsAutoFillable() public static méthode

public static IsAutoFillable ( this type ) : bool
type this
Résultat bool

IsChild() public static méthode

public static IsChild ( this type ) : bool
type this
Résultat bool

IsChildArray() public static méthode

public static IsChildArray ( this type ) : bool
type this
Résultat bool

IsConcrete() public static méthode

public static IsConcrete ( this type ) : bool
type this
Résultat bool

IsConcreteAndAssignableTo() public static méthode

public static IsConcreteAndAssignableTo ( this pluggedType, Type pluginType ) : bool
pluggedType this
pluginType System.Type
Résultat bool

IsInNamespace() public static méthode

public static IsInNamespace ( this type, string nameSpace ) : bool
type this
nameSpace string
Résultat bool

IsNullable() public static méthode

public static IsNullable ( this type ) : bool
type this
Résultat bool

IsOpenGeneric() public static méthode

public static IsOpenGeneric ( this type ) : bool
type this
Résultat bool

IsPrimitive() public static méthode

public static IsPrimitive ( this type ) : bool
type this
Résultat bool

IsPrimitiveArray() public static méthode

public static IsPrimitiveArray ( this type ) : bool
type this
Résultat bool

IsSimple() public static méthode

public static IsSimple ( this type ) : bool
type this
Résultat bool

IsString() public static méthode

public static IsString ( this type ) : bool
type this
Résultat bool