Delegates and events are a key part of developing applications in C#. Developers often mistakenly assume that event-based programming is the sole domain of Windows Forms programming. The truth is that you can add a lot of power and value to your applications by making use of events and delegates, regardless of whether you're creating a Windows Forms application, an ASP.NET application, or even an application with no user interface at all. This chapter shows you how to start developing with delegates, anonymous methods, multicast delegates, and events. At the end of the chapter, you will be able to start adding event-based programming patterns to your applications as you continue throughout this book. |