C# Класс NProxy.Core.Internal.Reflection.TypeExtensions

Provides Type extension methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
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