Appendix C. Delegates and Events

THE FOLLOWING STORY is adapted from a story on sellsbrothers.com as a more thorough, although less reverent, explanation of delegates and events than appears elsewhere in the book. The characters in this story are fictional and any similarity to real persons or events is unintentional.

Delegates

Once upon a time, in a strange land south of here, there was a worker named Peter. He was a diligent worker who would readily accept requests from his boss. However, his boss was a mean, untrusting man who insisted on steady progress reports. Because Peter did not want his boss standing in his office looking over his shoulder, Peter promised to notify his boss whenever his work progressed. Peter implemented this promise ...

Get Windows Forms 2.0 Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.