C#中委托的例子(简单)
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDelegateDemo{publicdelegatevoidMyDelegate(stringmydelegate);//声明一个delegate对象publicclassTestClass{//实现有相同参数和返回值的函数publicvoidHelloDelegate(stringmydelegate){Console.WriteLi
下载地址
用户评论