class Program
    {
        static void Main(string[] args)
        {
            string mid = ",mid";
            Action<string> anonDel = delegate (string param)
            {
                param += mid;
                param += " and this.";
                Console.WriteLine(param);
            };

            anonDel += delegate (string t)
            {
                Console.WriteLine(t + System.Guid.NewGuid().ToString());
            };

            anonDel("www.webczw.com");

            Console.ReadKey();
        }
    }

 

posted on 2015-09-04 21:46  USID  阅读(359)  评论(0编辑  收藏  举报