好东西。转载一个。以备学习

Linq学习工具:     http://www.linqpad.net/

Lamada表达式:

        Func<int, int, int> IntPow =
(x, y) =>
{
int r = x;
for (int i = ; i < y; i++) r *= x;
return r;
};
Console.WriteLine(IntPow(, ));

   备注:匿名函数—>委托—>Lamada表达式(由来)

05-02 08:42