METHOD
Enumerable.Where
Filters a sequence by a predicate. Representative overload.
Formal Syntax & Structure
csharp syntaxcsharp
IEnumerable<T> Where<T>(IEnumerable<T> source, Func<T,bool> predicate)Working Example
Example Snippetcsharp
using System;using System.Linq;var matches = new[] {1,2,3}.Where(n => n > 1);