This topic has not yet been rated - Rate this topic

Defining an Event with Reflection Emit

An event is defined using the TypeBuilderDefineEvent method. DefineEvent returns an EventBuilder. The DefineEvent method requires the caller to specify the event name, the event attributes (using the EventAttributes enumeration), and the event type.

The EventBuilder class allows the caller to specify the following:

  • The method for the AddOn event.

  • The method for the RemoveOn event.

  • The method for the Raise event.

  • Any other methods.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.