What Is a Delegate?

The Common Type System provides the .NET Framework with a standardized way of describing and manipulating data types in a language-agnostic manner. In addition to common types such as integers, strings, dates, bytes and more, the CTS also defines a delegate, making delegates available to C#, Visual Basic .NET, and any other .NET language.

All delegates in the .NET Framework are descendants of the System.Delegate class. A delegate serves as a placeholder for information about a specific method call. As mentioned earlier, a delegate also is a type-safe, managed function pointer.

The following is a list of the steps required to implement delegates in your application. The first step is the declaration of the delegate. You should ...

Get Microsoft® Visual C#® .NET 2003 Unleashed 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.