How to: Implement Interface Events

An interface can declare an event. The following example shows how to implement interface events in a class. Basically the rules are the same as when implementing any interface method or property.

To implement interface events in a class

  • Declare the event in your class and then invoke it in the appropriate places

你可能感兴趣的:(interface)