LINQ:
*LINQ
*Where filter
*Any
*Zip
*Min
*Cast
*All
*Sum
*Take
*Max
*Skip
*Last
*Join
This method returns an IEnumerable with all the elements that meets the lambda expression
Example
var personNames = new[]
{
"Foo", "Bar", "Fizz", "Buzz"
};
var namesStartingWithF = personNames.Where(p => p.StartsWith("F"));
Console.WriteLine(string.Join(",", namesStartingWithF));
Output:
Foo,Fizz