System.Reflection.IReflect.GetMethod Method

Retrieves a System.Reflection.MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods.

Syntax

public MethodInfo GetMethod (string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)

Parameters

name
The name of the member to find.
bindingAttr
The binding attributes used to control the search.
binder
An object that implements System.Reflection.Binder, containing properties related to this method.
types
An array used to choose among overloaded methods.
modifiers
An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.

Returns

The requested method that matches all the specified parameters.

Remarks

The return value is a match based on the method name, System.Reflection.BindingFlags enum member, the kind of type conversion specified by the binder parameter, the overload, and the System.Reflection.ParameterInfo that describes the signature of the method.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0