private static void OnCarEngineEvent (object sender, CarEventArgs e) { Console.WriteLine ("***** Message from car *****"); Console.WriteLine ("\t{0} says => {1}", sender.GetType ().Name, e.msg); Console.WriteLine ("****************************\n"); }
private static void OnCarEngineEvent(object sender, CarEventArgs e) { Console.WriteLine("***** Message from car *****"); Console.WriteLine("\t{0} says => {1}", sender.GetType().Name, e.msg); Console.WriteLine("****************************\n"); }