c# local definition in expression
A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments or returned as the value of function calls.ambdas can refer to outer variables (see Anonymous Methods (C# Programming Guide)) that are in scope in the method that defines the lambda function, or in scope in the type that contains the lambda expression.