????????1??“??????????????????????????????????????????????”

???????????????ж?????????????????????????????????????ε??ü????????????????????????

????"+="??"-="??????????????????????????????????????????????????ж????????????????????ж???

???????????????????????????????????????????塣?в????????????????????????????????????е?????У???????????????????????????????????????????С???????????£?

public class Class1
    {
        /// <summary>
        /// ???????
        /// </summary>
        /// <param name="ismove">?????????е???</param>
        public delegate void Print(ref string ismove);
        /// <summary>
        /// ??????
        /// </summary>
        Print p;
        /// <summary>
        ///????????
        /// </summary>
        public Class1()
        {
            //??????????
            p = new Print(method1);//????????????????????е???????
            p += method2;
            p += method3;
            p += method4;
        }
        /// <summary>
        /// ???????????
        /// </summary>
        /// <returns></returns>
        public string run()
        {
            string ismove = "yes";
            p(ref ismove);
            return ismove;
        }
        public void method1(ref string ismove)
        {
            Console.WriteLine("method1");
            if (ismove == "yes")//?ж????????????????
            {
            }
        }
        public void method2(ref string ismove)
        {
            Console.WriteLine("method2");
            if (ismove == "yes")//?ж????????????????
            {
                //????????????????е???????????????ú???????
                p -= method3; //???????3
                p -= method4;//???????4
            }
        }
        /***********************??????????????????******************************************/
        public void method3(ref string ismove)
        {
            Console.WriteLine("method3");
            if (ismove == "yes")//?ж????????????????
            {
            }
        }
        public void method4(ref string ismove)
        {
            Console.WriteLine("method4");
            if (ismove == "yes")//?ж????????????????
            {
            }
        }
    }

??????????????????????????“???”?????run?????????????????????

????“
????method1
????method2
????”

????????????????????Σ????????

???????????????????????????????????????

???????????????????“??????????????????????????β?????????”??????????????????ɡ?