Using .NET how do you explain events to a beginner?
Most of the introduction books I’ve looked at talk about a WinForms app, double click the button in designer and viola you have an event.
I don’t like it since it doesn’t explain anything about what’s happening behind the scenes or the more complicated things like chaining events.
Is there a better way to explain events and what should I be adding (for example chaining, delegates etc…)?
There is a good article here. It starts with “An event is a mechanism via which a class can notify its clients when something happens. For example when you click a button, a button-click-event notification is sent to the window hosting the button.” Which explains things quite well I think.