using System;

namespace ConsoleApplication1
{
class Program
{

static void Main(string[] args)
{
TestClass testClass = new TestClass();
testClass.testEventHandler+=testAdd;
testClass.TestRun( new testEvenargv(3, 4));
}

static void testAdd(object o,testEvenargv e)
{
Console.WriteLine((e.x+e.y).ToString());

}

}

class TestClass
{
public event EventHandler<testEvenargv> testEventHandler;

public void TestRun(testEvenargv e)
{
if(testEventHandler != null)
{
testEventHandler(this,e);
}
}
}

class testEvenargv : EventArgs
{
public int x;
public int y;

public testEvenargv(int x, int y)
{
this.x = x;
this.y = y;
}
}


}