O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

EventArgs

Synopsis

See the EventHandler entry for details regarding the EventArgs/EventHandler idiom for delegates in .NET. If .NET developers wish to follow this idiom, they should create new subtypes of EventArgs for each new collection of data to be sent to interested parties; otherwise, they should pass Empty, indicating that no event data is to be passed as part of this event notification.

public class EventArgs {
// Public Constructors
   public method EventArgs();  
// Public Static Fields
   public static readonly field EventArgs Empty;                 // =System.EventArgs
}

Subclasses

Multiple types

Passed To

EventHandler.{BeginInvoke(), Invoke()}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required