摘要: // 声明一个委托. delegate void Del(string str); // 声明一个与委托签名相同的方法. static void Notify(string name) { Console.WriteLine("Notification received for: {0}", name); } // C# 1.0 和更高版本中创建一个Del委托实例. Del del... 阅读全文
posted @ 2017-09-09 21:35 巫居树 阅读(1662) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 8 namespace Wrox.ProCSharp.Delegates 9 { 10 ... 阅读全文
posted @ 2017-09-09 13:59 巫居树 阅读(274) 评论(0) 推荐(0) 编辑