Chapter 9. Events and Delegates


In This Chapter

  • Introduction to Delegates

  • Using Anonymous Methods

  • Creating Multicast Delegates

  • Introduction to Events

  • Advanced Event-Based Programming

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.



Microsoft Visual C# 2005 Unleashed
Microsoft Visual C# 2005 Unleashed
ISBN: 0672327767
EAN: 2147483647
Year: 2004
Pages: 298

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net