.net??У????????????ɡ????塱
???????????? ???????[ 2013/6/13 10:45:22 ] ????????
????????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
????”
????????????????????Σ????????
???????????????????????????????????????
???????????????????“??????????????????????????β?????????”??????????????????ɡ?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11