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

Provides Type extension methods.
Afficher le fichier Open project: mtamme/NProxy

Méthodes publiques

Méthode 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

Méthode Description
MapGenericArguments ( this type, Type genericTypes ) : System.Type[]

Maps the generic arguments to the specified generic types.

Method Details

GetConstructor() public static méthode

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.
Résultat System.Reflection.ConstructorInfo

GetMethod() public static méthode

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.
Résultat System.Reflection.MethodInfo

IsDelegate() public static méthode

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

IsVoid() public static méthode

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

MapGenericType() public static méthode

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.
Résultat System.Type