Linq學習工具及Lamada表達式

好東西。轉載一個。以備學習web

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表達式(由來)學習

相關文章
相關標籤/搜索