System.Reflection.Emit.EnumBuilder.GetMethods Method

Returns all the public and non-public methods declared or inherited by this type, as specified.

Syntax

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

Parameters

bindingAttr
This must be a bit flag from System.Reflection.BindingFlags, such as InvokeMethod, NonPublic, and so on.

Returns

Returns an array of System.Reflection.MethodInfo objects representing the public and non-public methods defined on this type if nonPublic is used; otherwise, only the public methods are returned.

Remarks

As a workaround, to retrieve the methods of a finished type, retrieve the type using Type.GetType or System.Reflection.Assembly.GetType(string) and use reflection on the retrieved type.

Requirements

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