square is assigned the lambda expression x = > x * x : Lambda : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » Lambda »

 

square is assigned the lambda expression x = > x * x








    
 

using System;
delegate int Transformer(int i);

class Test {
    static void Main() {
        Transformer 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