Where filter

suggest change

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

View Demo

Feedback about page:

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


LINQ:
* LINQ
* Where filter
* Any
* Except
* Zip
* Concat
* Count
* Min
* Cast
* All
* Sum
* Take
* OfType
* Max
* Skip
* Last
* Union
* ToList
* Single
* Join
* Empty
* ThenBy
* Range
* Repeat

Table Of Contents