C# 클래스 Selenol.Extensions.ReflectionExtensions

The extensions for reflection types.
파일 보기 프로젝트 열기: pbakshy/Selenol

공개 메소드들

메소드 설명
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