C# Класс MefContrib.Hosting.Conventions.TypeExtensions

Contains extension methods for the Type type.
Показать файл Открыть проект

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

Метод Описание
GetActualType ( this type ) : Type
GetAllInstanceFields ( this source ) : System.Reflection.FieldInfo[]
GetAllInstanceProperties ( this source ) : System.Reflection.PropertyInfo[]
GetAllStaticFields ( this source ) : System.Reflection.FieldInfo[]
GetAllStaticProperties ( this source ) : System.Reflection.PropertyInfo[]
GetGreediestConstructor ( this type ) : ConstructorInfo
GetRequiredMetadata ( this source ) : IEnumerable
HasDefaultConstructor ( this self ) : bool
IsCollection ( this type ) : bool

Checks if the Type implements the ICollection interface.

IsEnumerable ( this type ) : bool

Checks if the Type implements the IEnumerable interface.

The method will return for string type.

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

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

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

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

public static GetAllInstanceFields ( this source ) : System.Reflection.FieldInfo[]
source this
Результат System.Reflection.FieldInfo[]

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

public static GetAllInstanceProperties ( this source ) : System.Reflection.PropertyInfo[]
source this
Результат System.Reflection.PropertyInfo[]

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

public static GetAllStaticFields ( this source ) : System.Reflection.FieldInfo[]
source this
Результат System.Reflection.FieldInfo[]

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

public static GetAllStaticProperties ( this source ) : System.Reflection.PropertyInfo[]
source this
Результат System.Reflection.PropertyInfo[]

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

public static GetGreediestConstructor ( this type ) : ConstructorInfo
type this
Результат System.Reflection.ConstructorInfo

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

public static GetRequiredMetadata ( this source ) : IEnumerable
source this
Результат IEnumerable

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

public static HasDefaultConstructor ( this self ) : bool
self this
Результат bool

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

Checks if the Type implements the ICollection interface.
public static IsCollection ( this type ) : bool
type this The to inspect.
Результат bool

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

Checks if the Type implements the IEnumerable interface.
The method will return for string type.
public static IsEnumerable ( this type ) : bool
type this The to inspect.
Результат bool