Example #1
0
        public void executeeventargs()
        {
            something += (s, e) => { Console.WriteLine("test2"); };
            testeventargs e = new testeventargs()
            {
                teststring = "testthis"
            };

            eventname += testmethod;
            eventname?.Invoke(this, e);
        }
Example #2
0
 public static void testmethod(object sender, testeventargs e)
 {
     Console.WriteLine(e.teststring);
 }