Delegates and Events in C#

By: Richard Wiener


Delegates are a feature of C# not found in Java. A delegate is a class that encapsulates a method signature. Although it can be used in any context, it often serves as the basis for the event-handling model in C# but can be used in a context removed from event handling. Delegates provide a type-safe, object-oriented mechanism for treating functions as objects and passing method references as parameters without having to use function pointers as in C or C++.

Cite as:

Richard Wiener, “Delegates and Events in C#”, Journal of Object Technology, Volume 3, no. 5 (May 2004), pp. 78-85, doi:10.5381/jot.2004.3.5.c8.

PDF | HTML | DOI | BiBTeX | Tweet this | Post to CiteULike | Share on LinkedIn