public void executeeventargs() { something += (s, e) => { Console.WriteLine("test2"); }; testeventargs e = new testeventargs() { teststring = "testthis" }; eventname += testmethod; eventname?.Invoke(this, e); }
public static void testmethod(object sender, testeventargs e) { Console.WriteLine(e.teststring); }