static void Main(string[] args) { EventProgram obj1 = new EventProgram(); string result = obj1.MyEvent("Events handler"); Console.WriteLine(result); Console.ReadKey(); }
static void Main(string[] args) { EventProgram obj = new EventProgram(); string result = obj.MyEvent("To Events!"); Console.WriteLine(result); Console.ReadLine(); }
static void Main(string[] args) { EventProgram ep = new EventProgram(); string result = ep.MyEvent("Tutorials Point"); Console.WriteLine(result); Console.ReadKey(); }