O'Reilly logo

Microsoft® Visual C#® 2005 Step by Step by John Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Delegates and Events

After completing this chapter, you will be able to:

  • Declare a delegate type to create an abstraction of a method signature.

  • Create an instance of a delegate to refer to a specific method and to an anonymous method.

  • Call a method through a delegate.

  • Declare an event field.

  • Handle an event by using a delegate.

  • Raise an event.

Much of the code you have written in the various exercises in this book has assumed that statements execute sequentially. While this is a common scenario, you will find that it is sometimes necessary to interrupt the current flow of execution and perform another more important task. When the task has completed, the program can continue where it left off. The classic example of this style of program ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required