 Instead of declaring a separate method in code the programmer can use the syntax to write the code inline and the compiler will then generate an anonymous function for it.Func f = delegate(int x) { return x*2; };


Lambda expressions provide a simple syntax for inline functions that are similar to closures.Functions with parameters infer the type of the parameters if other is not explicitly specified.