Method GetMethodRecursively
GetMethodRecursively(Type, string, BindingFlags)
Searches this type and all base types for a method by name.
Declaration
public static MethodInfo GetMethodRecursively(this Type type, string name, BindingFlags bindingAttr)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type being searched. |
| string | name | The name of the method for which to search. |
| BindingFlags | bindingAttr | BindingFlags passed to Type.GetMethod. |
Returns
| Type | Description |
|---|---|
| MethodInfo | MethodInfo for the first matching method found. Null if no method is found. |