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 ...
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.
Read now
Unlock full access