System.Reflection.Emit.ModuleBuilder.GetMethodImpl Method

Returns the module-level method that matches the specified criteria.

Syntax

protected override System.Reflection.MethodInfo GetMethodImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers)

Parameters

name
The method name.
bindingAttr
A combination of BindingFlags bit flags used to control the search.
binder
An object that implements Binder, containing properties related to this method.
callConvention
The calling convention for the method.
types
The parameter types of the method.
modifiers
An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.

Returns

A method that is defined at the module level, and matches the specified criteria; or null if such a method does not exist.

Remarks

This method provides the implementation for all overloads of the inherited erload:System.Reflection.Module.GetMethod method. Use the inherited erload:System.Reflection.Module.GetMethod method to get methods that have been declared at the module level. Module-level methods are defined in emitted code by using the erload:System.Reflection.Emit.ModuleBuilder.DefineGlobalMethod method.

Note:

Module-level methods cannot be retrieved until after the ModuleBuilder.CreateGlobalFunctions method has been called for the module.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0