C# Language Passing a Lambda Expression as a Parameter to a Method

Download C# Language for free

Example

List<int> l2 = l1.FindAll(x => x > 6);

Here x => x > 6 is a lambda expression acting as a predicate that makes sure that only elements above 6 are returned.

Put Multiple Statements in a Statement Lambda