C# Класс SignalWire.Providers.GenericExtensions

Показать файл Открыть проект

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

Метод Описание
GetMethodExt ( this thisType, string name ) : MethodInfo

Search for a method by name and parameter types. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.

GetMethodExt ( this thisType, string name, BindingFlags bindingFlags ) : MethodInfo

Search for a method by name, parameter types, and binding flags. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.

Приватные методы

Метод Описание
GetMethodExt ( MethodInfo &matchingMethod, Type type, string name, BindingFlags bindingFlags ) : void
IsSimilarType ( this thisType, Type type ) : bool

Determines if the two types are either identical, or are both generic parameters or generic types with generic parameters in the same locations (generic parameters match any other generic paramter, but NOT concrete types).

Описание методов

GetMethodExt() публичный статический Метод

Search for a method by name and parameter types. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.
public static GetMethodExt ( this thisType, string name ) : MethodInfo
thisType this
name string
Результат System.Reflection.MethodInfo

GetMethodExt() публичный статический Метод

Search for a method by name, parameter types, and binding flags. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.
public static GetMethodExt ( this thisType, string name, BindingFlags bindingFlags ) : MethodInfo
thisType this
name string
bindingFlags BindingFlags
Результат System.Reflection.MethodInfo