标签:strong anon ted 代码块 gate ber nbsp line class
匿名方法(Anonymous methods) 提供了一种传递代码块作为委托参数的技术
delegate void NumberChanger(int n); ... NumberChanger nc = delegate(int x) { Console.WriteLine("Anonymous Method: {0}", x); };
nc(10);
标签:strong anon ted 代码块 gate ber nbsp line class
原文地址:https://www.cnblogs.com/guomengkai/p/13339336.html