委托的另一种写法

    class Program
    {
        static void Main()
        {
            EventHandler handler;

            handler = delegate { Console.WriteLine("Handled anonymously"); };

            handler(null, EventArgs.Empty);

            Console.ReadKey();
        }
    }
原文地址:https://www.cnblogs.com/xushining/p/5767603.html