static void Main(string[] args)
        {
            EventProgram obj1   = new EventProgram();
            string       result = obj1.MyEvent("Events handler");

            Console.WriteLine(result);
            Console.ReadKey();
        }
예제 #2
0
            static void Main(string[] args)
            {
                EventProgram obj    = new EventProgram();
                string       result = obj.MyEvent("To Events!");

                Console.WriteLine(result);
                Console.ReadLine();
            }
예제 #3
0
        static void Main(string[] args)
        {
            EventProgram ep     = new EventProgram();
            string       result = ep.MyEvent("Tutorials Point");

            Console.WriteLine(result);
            Console.ReadKey();
        }