好东西。转载一个。以备学习
Linq学习工具: http://www.linqpad.net/
Lamada表达式:
Func<int, int, int> IntPow = (x, y) => { int r = x; for (int i = 1; i < y; i++) r *= x; return r; }; Console.WriteLine(IntPow(3, 2));
备注:匿名函数—>委托—>Lamada表达式(由来)