public void DoCount() { for (int i = 1; i <= 10; ++i) { if (null != TestEvent1) { EventArgsTest e = new EventArgsTest(); e.x = 10; TestEvent1(this, e); } } }
public static void PrintX(object sender, EventArgsTest e) { Console.WriteLine($"XXXXXXXXXXXXX:{e.x}"); }