Type Summary

						public class EventArgs
{
  // Constructors
     public EventArgs ();

  // Fields
     public static readonly EventArgs Empty = new EventArgs();
}

BA Throughout the .NET Framework we encapsulate arguments to an event in subclasses of EventArgs. For example we prefer:

public delegate void AssemblyLoadEventHandler(object sender,
 AssemblyLoadEventArgs args);

rather than

public delegate void AssemblyLoadEventHandler(object sender,
 Assembly loadedAssembly);

If we want to add some new information in the event callback we can do it without breaking ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library 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.