Enumerating standard query operators

There are more than 50 query operators in the Enumerable class included in the System.Linq namespace. They are also known as standard query operators. Based on the function of the operators, we can divide them into several operations. Here, we are going to discuss all the query operators in LINQ provided by .NET Framework.

Filtering

Filtering is an operation that will evaluate the element of data so that only the element satisfying the condition will be selected. There are six filtering operators; they are Where, Take, Skip, TakeWhile, SkipWhile, and Distinct. As we know, we have already discussed the Where operator in our previous sample code, both in the fluent syntax and the query expression syntax, and have ...

Get Functional C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.