C# 클래스 RiotNet.ReflectionUtils

Contains reflection-related helper methods.
파일 보기 프로젝트 열기: aj-r/RiotNet

공개 메소드들

메소드 설명
GetDictionaryInterface ( Type type ) : Type

Gets the IDictionary<,> interface that the type implements, if any.

GetGenericInterface ( Type type, Type genericInterfaceDefinition ) : Type

Gets the interface that a type implements that matches the specified generic interface definition.

GetListInterface ( Type type ) : Type

Gets the IList<> interface that the type implements, if any.

IsSubclassOfGenericTypeDefinition ( Type objectType, Type genericTypeDefinition ) : bool

Gets whether the specified type is a subclass of a generic type represented by the specified generic type definition.

메소드 상세

GetDictionaryInterface() 공개 정적인 메소드

Gets the IDictionary<,> interface that the type implements, if any.
public static GetDictionaryInterface ( Type type ) : Type
type System.Type The type of object that implements the interface.
리턴 System.Type

GetGenericInterface() 공개 정적인 메소드

Gets the interface that a type implements that matches the specified generic interface definition.
public static GetGenericInterface ( Type type, Type genericInterfaceDefinition ) : Type
type System.Type The type of object that implements the interface.
genericInterfaceDefinition System.Type A generic type definition for an interface (e.g. typeof(IEnumerable<>)).
리턴 System.Type

GetListInterface() 공개 정적인 메소드

Gets the IList<> interface that the type implements, if any.
public static GetListInterface ( Type type ) : Type
type System.Type The type of object that implements the interface.
리턴 System.Type

IsSubclassOfGenericTypeDefinition() 공개 정적인 메소드

Gets whether the specified type is a subclass of a generic type represented by the specified generic type definition.
public static IsSubclassOfGenericTypeDefinition ( Type objectType, Type genericTypeDefinition ) : bool
objectType System.Type The type to check.
genericTypeDefinition System.Type A generic type definition (e.g. typeof(List<>))
리턴 bool