- bindingAttr
- A bitwise combination of System.Reflection.BindingFlags values that control the binding process. For requirements, see the Behaviors section.
- match
- An array of System.Reflection.MethodBase objects that represent the set of methods that Reflection has determined to be a possible match, typically because they have the correct member name.
- args
- An array of objects that represent the parameters passed in the method invocation. The types, values, and order of the elements of this array might be changed by this method to match the signature of the selected method.
- modifiers
- The only defined value for this parameter is null .
- culture
- The only defined value for this parameter is null .
- names
- A string array containing the names of methods to be searched.
- state
- A binder-provided object that keeps track of parameter reordering. The state object is totally defined by the implementer of the System.Reflection.Binder class. This object is null if the binder does not reorder the argument array of the bound method.
A System.Reflection.MethodBase instance that reflects the method that matches to the specified criteria. It is not required that this instance be contained in match . If a suitable method is not found, returns null .
If state is not null, the system invokes Binder.ReorderArgumentArray(Object[]@, object) after this method returns.
For the bindingAttr parameter, the caller is required to specify either BindingFlags.Public or BindingFlags.NonPublic, and either BindingFlags.Instance or BindingFlags.Static. If at least one value from each pair is not specified, this method is required to return null .
The Binder.BindToMethod(BindingFlags, MethodBase[], Object[]@, ParameterModifier[], System.Globalization.CultureInfo, String[], Object@) method is permitted to change the order of the argument array of a method call only if the binder returns, via the state parameter, a non-null opaque object that records the original order of the argument array. If, on return from Binder.BindToMethod(BindingFlags, MethodBase[], Object[]@, ParameterModifier[], System.Globalization.CultureInfo, String[], Object@), state is not null, the system calls Binder.ReorderArgumentArray(Object[]@, object) .