Summary

A delegate is a programming construct that provides support for implementing callback notifications. Delegates provide a binding mechanism for connecting a notification source to one or more handler methods. They allow you to implement callback notifications in a manner that is both type safe and loosely coupled. As a result, you can create an application in which handler methods are easily added and substituted for one another to change the application's behavior.

The information presented in this chapter is an important prerequisite to the discussion in Chapter 8, which focuses on events. Events are really just a productivity layer built on top of delegates. Now that you understand how delegates work, you are ready for an advanced discussion ...

Get Building Applications and Components with Visual Basic .NET 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.