A lambda expression has the following BNF form : Lambda : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » Lambda »

 

A lambda expression has the following BNF form








    
 

using System;

class Test {
    static void Main() {
        Func<int, int> square = x => x * x;
        Console.WriteLine(square(3));     // 9
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» Lambda