11.3. The System.MulticastDelegate and System.Delegate Base Classes

So, when you build a type using the C# delegate keyword, you indirectly declare a class type that derives from System.MulticastDelegate. This class provides descendents with access to a list that contains the addresses of the methods maintained by the delegate object, as well as several additional methods (and a few overloaded operators) to interact with the invocation list. Here are some select members of System.MulticastDelegate:

public abstract class MulticastDelegate : Delegate
{
  // Returns the list of methods "pointed to."
public sealed override Delegate[] GetInvocationList();

  // Overloaded operators. public static bool operator ==(MulticastDelegate d1, MulticastDelegate ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition 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.