CustomReflectionBinder.SelectMethod Method
SelectMethod(BindingFlags, MethodBase[], Type[], ParameterModifier[])
Selects a method from the given set of methods, based on the argument type.
Declaration
public override MethodBase SelectMethod(BindingFlags bindingFlags, MethodBase[] match, Type[] types, ParameterModifier[] modifiers)
Parameters
Type | Name | Description |
---|---|---|
BindingFlags | bindingFlags | |
MethodBase[] | match | The set of methods that are candidates for matching. For example, when a Binder object is used by InvokeMember, this parameter specifies the set of methods that reflection has determined to be possible matches, typically because they have the correct member name. The default implementation provided by DefaultBinder changes the order of this array. |
Type[] | types | The parameter types used to locate a matching method. |
ParameterModifier[] | modifiers | An array of parameter modifiers that enable binding to work with parameter signatures in which the types have been modified. |
Returns
Type | Description |
---|---|
MethodBase | The matching method, if found; otherwise, null. |
Exceptions
Type | Condition |
---|---|
AmbiguousMatchException | For the default binder, |
ArgumentException | For the default binder, |