Passing a Lambda Expression as a Parameter to a Method

suggest change

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.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents