System.Reflection.Emit.ModuleBuilder.GetMethods Method

Returns all the methods that have been defined at the module level for the current System.Reflection.Emit.ModuleBuilder, and that match the specified binding flags.

Syntax

public override System.Reflection.MethodInfo[] GetMethods (System.Reflection.BindingFlags bindingFlags)

Parameters

bindingFlags
A combination of BindingFlags bit flags used to control the search.

Returns

An array that contains all the module-level methods that match bindingFlags.

Remarks

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