Click or drag to resize
EventArgsT Class
Brings a quick and easy possibility to pass data with the EventHandler delegate.
Inheritance Hierarchy

Namespace: DW.SharpTools
Assembly: DW.SharpTools (in DW.SharpTools.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
C#
public class EventArgs<T> : EventArgs

Type Parameters

T
The type of the containing data.

The EventArgsT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyValue
Gets the data passed with the EventHandler delegate.
Top
Examples
C#
public event EventHandler<EventArgs<string>> Something;

private void OnSomething(string parameter)
{
    var handler = Something;
    if (handler != null)
        handler(this, new EventArgs<string>(parameter));
}
See Also