C# 클래스 NProxy.Core.Internal.Reflection.TypeExtensions

Provides Type extension methods.
파일 보기 프로젝트 열기: mtamme/NProxy

공개 메소드들

메소드 설명
GetConstructor ( this type, BindingFlags bindingFlags ) : ConstructorInfo

Returns the constructor information that reflects the constructor that matches the specified criterias.

GetMethod ( this type, string methodName, BindingFlags bindingFlags ) : MethodInfo

Returns the method that reflects the method that matches the specified criterias.

IsDelegate ( this type ) : bool

Returns a value indicating whether the specified type is a delegate.

IsVoid ( this type ) : bool

Returns a value indicating whether the specified type is void.

MapGenericType ( this type, Type genericTypes ) : Type

Maps a type to the specified generic types.

비공개 메소드들

메소드 설명
MapGenericArguments ( this type, Type genericTypes ) : System.Type[]

Maps the generic arguments to the specified generic types.

메소드 상세

GetConstructor() 공개 정적인 메소드

Returns the constructor information that reflects the constructor that matches the specified criterias.
public static GetConstructor ( this type, BindingFlags bindingFlags ) : ConstructorInfo
type this The type.
bindingFlags BindingFlags The binding flags.
리턴 System.Reflection.ConstructorInfo

GetMethod() 공개 정적인 메소드

Returns the method that reflects the method that matches the specified criterias.
public static GetMethod ( this type, string methodName, BindingFlags bindingFlags ) : MethodInfo
type this The type.
methodName string The method name.
bindingFlags BindingFlags The binding flags.
리턴 System.Reflection.MethodInfo

IsDelegate() 공개 정적인 메소드

Returns a value indicating whether the specified type is a delegate.
public static IsDelegate ( this type ) : bool
type this The type.
리턴 bool

IsVoid() 공개 정적인 메소드

Returns a value indicating whether the specified type is void.
public static IsVoid ( this type ) : bool
type this The type.
리턴 bool

MapGenericType() 공개 정적인 메소드

Maps a type to the specified generic types.
public static MapGenericType ( this type, Type genericTypes ) : Type
type this The type.
genericTypes System.Type The generic types.
리턴 System.Type