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();
        }