C# Класс SpecExpress.Util.TypeExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
checkGenericType ( Type pluggedType, Type pluginType ) : bool

Описание методов

AllInterfaces() публичный статический Метод

public static AllInterfaces ( this type ) : IEnumerable
type this
Результат IEnumerable

CanBeCastTo() публичный статический Метод

Determines if the pluggedType can be upcast to the pluginType
public static CanBeCastTo ( this pluggedType, Type pluginType ) : bool
pluggedType this
pluginType System.Type
Результат bool

Closes() публичный статический Метод

public static Closes ( this type, Type openType ) : bool
type this
openType System.Type
Результат bool

FindFirstInterfaceThatCloses() публичный статический Метод

public static FindFirstInterfaceThatCloses ( this pluggedType, Type templateType ) : Type
pluggedType this
templateType System.Type
Результат System.Type

FindInterfacesThatClose() публичный статический Метод

public static FindInterfacesThatClose ( this pluggedType, Type templateType ) : IEnumerable
pluggedType this
templateType System.Type
Результат IEnumerable

GenericCanBeCast() публичный статический Метод

public static GenericCanBeCast ( Type pluginType, Type pluggedType ) : bool
pluginType System.Type
pluggedType System.Type
Результат bool

GetFullName() публичный статический Метод

public static GetFullName ( this type ) : string
type this
Результат string

GetInnerTypeFromNullable() публичный статический Метод

public static GetInnerTypeFromNullable ( this nullableType ) : Type
nullableType this
Результат System.Type

GetName() публичный статический Метод

public static GetName ( this type ) : string
type this
Результат string

ImplementsInterfaceTemplate() публичный статический Метод

public static ImplementsInterfaceTemplate ( this pluggedType, Type templateType ) : bool
pluggedType this
templateType System.Type
Результат bool

IsAutoFillable() публичный статический Метод

public static IsAutoFillable ( this type ) : bool
type this
Результат bool

IsChild() публичный статический Метод

public static IsChild ( this type ) : bool
type this
Результат bool

IsChildArray() публичный статический Метод

public static IsChildArray ( this type ) : bool
type this
Результат bool

IsConcrete() публичный статический Метод

public static IsConcrete ( this type ) : bool
type this
Результат bool

IsConcreteAndAssignableTo() публичный статический Метод

public static IsConcreteAndAssignableTo ( this pluggedType, Type pluginType ) : bool
pluggedType this
pluginType System.Type
Результат bool

IsInNamespace() публичный статический Метод

public static IsInNamespace ( this type, string nameSpace ) : bool
type this
nameSpace string
Результат bool

IsNullable() публичный статический Метод

public static IsNullable ( this type ) : bool
type this
Результат bool

IsOpenGeneric() публичный статический Метод

public static IsOpenGeneric ( this type ) : bool
type this
Результат bool

IsPrimitive() публичный статический Метод

public static IsPrimitive ( this type ) : bool
type this
Результат bool

IsPrimitiveArray() публичный статический Метод

public static IsPrimitiveArray ( this type ) : bool
type this
Результат bool

IsSimple() публичный статический Метод

public static IsSimple ( this type ) : bool
type this
Результат bool

IsString() публичный статический Метод

public static IsString ( this type ) : bool
type this
Результат bool