System.Reflection.Emit.EnumBuilder.GetEvents Method

Returns the events for the public events declared or inherited by this type.

Syntax

public override System.Reflection.EventInfo[] GetEvents ()

Returns

Returns an array of System.Reflection.EventInfo objects representing the public events declared or inherited by this type. An empty array is returned if there are no public events.

Remarks

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