Free mag vol1 | Page 453

CHAPTER 10  DELEGATES, EVENTS, AND LAMBDA EXPRESSIONS } Console.WriteLine(); In this case, rather than directly creating a Predicate delegate type and then authoring a standalone method, we are able to inline a method anonymously. While this is a step in the right direction, we are still required to use the delegate keyword (or a strongly typed Predicate), and we must ensure that the parameter list is a dead-on match: List evenNumbers = list.FindAll( delegate(int i) { return (i % 2) == 0; } ); Lambda expressions can be used to simplify the call to FindAll() even more. When you make use of lam