C# Класс Selenol.Extensions.ReflectionExtensions

The extensions for reflection types.
Показать файл Открыть проект

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

Метод Описание
GetProperty ( this rootType, MethodInfo methodInfo ) : PropertyInfo

Gets property info from specified type by getter or setter method info.

IsAssignableFromGenericType ( this currentType, Type givenType ) : bool

Determines whether an instance of the current Type can be assigned from an instance of the specified Type.

IsAutoProperty ( this propertyInfo ) : bool

Checks whether the property is auto property.

IsGetter ( this methodInfo ) : bool

Checks whether the method info is property getter.

IsPropertyWithSelectorAttribute ( this propertyInfo ) : bool

Checks whether the property specified with BaseSelectorAttribute.

IsSetter ( this methodInfo ) : bool

Checks whether the method info is property setter.

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

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

Gets property info from specified type by getter or setter method info.
public static GetProperty ( this rootType, MethodInfo methodInfo ) : PropertyInfo
rootType this The root type.
methodInfo System.Reflection.MethodInfo The getter of setter method Info.
Результат System.Reflection.PropertyInfo

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

Determines whether an instance of the current Type can be assigned from an instance of the specified Type.
public static IsAssignableFromGenericType ( this currentType, Type givenType ) : bool
currentType this The current type.
givenType System.Type The type to compare with the current type.
Результат bool

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

Checks whether the property is auto property.
public static IsAutoProperty ( this propertyInfo ) : bool
propertyInfo this The property info.
Результат bool

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

Checks whether the method info is property getter.
public static IsGetter ( this methodInfo ) : bool
methodInfo this The method info.
Результат bool

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

Checks whether the property specified with BaseSelectorAttribute.
public static IsPropertyWithSelectorAttribute ( this propertyInfo ) : bool
propertyInfo this The property info.
Результат bool

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

Checks whether the method info is property setter.
public static IsSetter ( this methodInfo ) : bool
methodInfo this The method info.
Результат bool