给自己出的一道分析题
时间:2014-11-26 01:14:56
收藏:0
阅读:202
class Program { delegate int Add(int i); private static void wridAdd(Add a) { Console.WriteLine(a(1 + 2)); } static void Main(string[] args) { wridAdd(n => n + 1); Console.Read(); } }
这个代码有意思! 对于只会.Net 2.0 的同学来说,难度不要太大!
评论(0)