C# Class NProxy.Core.Internal.Reflection.TypeExtensions

Provides Type extension methods.
Exibir arquivo Open project: mtamme/NProxy

Public Methods

Method Description
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.

Private Methods

Method Description
MapGenericArguments ( this type, Type genericTypes ) : System.Type[]

Maps the generic arguments to the specified generic types.

Method Details

GetConstructor() public static method

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.
return System.Reflection.ConstructorInfo

GetMethod() public static method

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.
return System.Reflection.MethodInfo

IsDelegate() public static method

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

IsVoid() public static method

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

MapGenericType() public static method

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.
return System.Type