A simple select with where is classified under Restriction Operators in LINQ. Below is a sample that uses where to find all elements of an array less than 5 using LINQ Select statement
public void Linq() { int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; var lowNums = from n in numbers where n < 5 select n; Console.WriteLine("Numbers < 5:"); foreach (var x in lowNums) { Console.WriteLine(x); } }Result
Numbers < 5: 4 1 3 2 0