你们有没发现VS2008不支持委托链?我的怎么不能啊?

解决方案 »

  1.   

    vs 2008发布那么久了,我想有问题的话LZ肯定不是第一个发现的
      

  2.   

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;namespace ConsoleApplication1
    {
        delegate void asp(string food);
        class Program
        {
            static void EAT(string food)
            {
                Console.WriteLine("张三吃"+food);
                    Console.Read();
            }
            static void ASR(string food)
            {
                Console.WriteLine("李四吃"+food);
                    Console.Read();
            }
            static void Main(string[] args)
            {
                asp ZS= new asp(EAT);
                asp LS= new asp(ASR);
                asp eatchain;
                eatchain = ZS + LS;
                eatchain("西瓜");     
            }
        }
    }
      

  3.   

    朋友你把      Console.Read(); 这句去掉看看打印完 张三吃西瓜 后 执行Console。Read()这句,你按下回车就看见 李四吃西瓜