Skip to Content
Microsoft® Visual C#® 2005 Step by Step
book

Microsoft® Visual C#® 2005 Step by Step

by John Sharp
October 2005
Beginner content levelBeginner
592 pages
15h 2m
English
Microsoft Press
Content preview from Microsoft® Visual C#® 2005 Step by Step

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Visual C#® 2010 Step by Step

Microsoft® Visual C#® 2010 Step by Step

John Sharp
Professional C# 2005

Professional C# 2005

Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones

Publisher Resources

ISBN: 0735621292Supplemental ContentErrata