System.Reflection.Emit.EnumBuilder.GetMember Method

Returns all members with the specified name, type, and binding that are declared or inherited by this type.

Syntax

public override System.Reflection.MemberInfo[] GetMember (string name, System.Reflection.MemberTypes type, System.Reflection.BindingFlags bindingAttr)

Parameters

name
The name of the member.
type
The type of member that is to be returned.
bindingAttr
This must be a bit flag from System.Reflection.BindingFlags : InvokeMethod, NonPublic, and so on.

Returns

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

Remarks

As a workaround, to retrieve the member 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