What are LINQ Lambda Expressions for example?
What are LINQ Lambda Expressions for example?
Student
An enthusiastic, adaptive, and fast-learning person with a broad and acute interest in the discovery of new innovative drugs, I particularly enjoy collaborating with scientists from different disciplines to develop new skills and solve new challenges.
That is, Lambda Expression only provides the facility to specify the syntax of the Anonymous Method in a simple way. In place of the Anonymous Method, we can also use Lambda Expressions, which is more convenient to use than Anonymous Methods.
LINQ Lambda Expressions Syntax
Lambda Expression is dynamic variable and decides the type in compile time.
intAry.Where( x => x%2 == 0 );
in this example x is dynamic variable, and this expression { x%2 == 0 } check the x is even or odd.
Example
Output