Class MethodBaseConverterExtensions
This is an extension implementation of the MethodBaseConverter class.
Inheritance
System.Object
MethodBaseConverterExtensions
Namespace: Cuemon.Reflection
Assembly: Cuemon.Core.dll
Syntax
public static class MethodBaseConverterExtensions
Methods
| Improve this DocToMethodBase(Type, Type[], String, BindingFlags)
Converts the specified caller information into an instance of a System.Reflection.MethodBase object.
Declaration
public static MethodBase ToMethodBase(this Type caller, Type[] types = null, string memberName = "", BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.Static)
Parameters
Type | Name | Description |
---|---|---|
System.Type | caller | The System.Type to conduct a search for |
System.Type[] | types | An array of System.Type objects representing the number, order, and type of the parameters for the method to get. |
System.String | memberName | The name of the member of |
System.Reflection.BindingFlags | flags | A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. |
Returns
Type | Description |
---|---|
System.Reflection.MethodBase | An object representing the method that matches the specified requirements, if found; otherwise, |