Events in an interface?

  • Thread starter Thread starter Jon Davis
  • Start date Start date
Nevermind, apparently they can.

/// <summary>
/// When implemented, this should call SaveConfig() on the owner plop.
/// </summary>
void SaveConfig();

/// <summary>
/// When implemented, triggered when the config has been saved.
/// </summary>
event EventHandler ConfigSaved;

bool CloseOnSave {
get;
}


Jon
 
Yes, you can:

event EventType EventName

EventType is the delegate type for the event.
 
Back
Top