static void Main(string[] args) { Students students = new Students(); MovingEventArgs m = new MovingEventArgs(); StringHelper h = new StringHelper(); students.onCount += m.Message; students.onCount += h.Message; students.Move(15); }
private static void Student_Moving(object sender, MovingEventArgs e) { Console.WriteLine(e.Message); }