DuraSoft
.NET-60
Events
•Events are implemented using the Delegates
•Act like the connection point in COM
•You first declare a delegate, only if a suitable one is not available
–must take two arguments: Object source, EventArgs e
–.NET has predefined delegate EventHandler
•Any number of events can use the same Delegate definition
•Use event keyword to declare event in a class
•events appear like fields within a class
–big difference: fields can’t appear in interface, events can