摘要:
1.定义的委托和方法 delegate void TestDelegate(string s); static void M(string s) { Console.WriteLine(s); }2.常规委托:// Original delegate syntax required // initialization with a named method. TestDelegate testdelA = new TestDelegate(M);3.匿名方法 // C# 2.0: A delegate can be initi... 阅读全文