C# Class SignalWire.Providers.GenericExtensions

Datei anzeigen Open project: amazedsaint/SignalWire

Public Methods

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

Private Methods

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

Method Details

GetMethodExt() public static method

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

GetMethodExt() public static method

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