Chapter 14. C# delegates

Delegates will be something new to Java developers, and understanding them is important for understanding events.[1] And since events are an important part of any event-driven language, mastering delegates is a prerequisite if you want to be proficient in C#.

[1] I have read C# books which do not make a distinction between delegates and events, and (worse still) some which use delegates instead of events for event handling. Events can be viewed as one special type of delegate, but they are definitely not identical!

Get From Java to C#: A Developer's Guide 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.