摘要: C#中的三种委托方式:Func委托,Action委托,Predicate委托。Func,Action,Predicate全面解析首先来说明Func委托,通过MSDN我们可以了解到,Func委托有如下的5种类型: (1) *delegate TResult Func(); C#中的三种委托方式:Fun... 阅读全文
posted @ 2012-09-29 11:20 王永华 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 1:使用委托的方法: delegate int MyDelegate(int i); static void Main(string[] args) { MyDelegate mydel = new MyDelegate(a); int b=myde... 阅读全文
posted @ 2012-09-29 10:21 王永华 阅读(172) 评论(0) 推荐(0) 编辑