This project has moved. For the latest updates, please go here.

EventArgs class

Represents a generic EventArgs

new EventArgs<int>(3);

Example:

class MyClass
{
    event EventHandler<EventArgs<int>> MyEventHandler;
    MyClass()
    {
        MyEventHandler += MyMethodHandler;
    }

    void MyMethodHandler(object sender, EventArgs<int> e)
    {
        // Do something with e.Value
    }
}

Last edited Jul 4, 2011 at 2:39 AM by cloudlucky, version 1