Built-in LINQ operators
As we have seen in previous sections, there are no semantic differences between method syntax and query syntax. In addition, some queries such as those that retrieve the number of elements matching a specified condition or those that retrieve the element that has the maximum value in a source sequence, can be expressed only as method calls. These kinds of methods are sometimes referred to as .NET Standard Query Operators and include Take
, ToList
, FirstOrDefault
, and Max
and Min
.
In addition to those methods that can only be expressed as method calls, all the extension methods that can be used in either query syntax or method syntax are also defined as standard query operators such as select
, where
, and from
. So the .NET Standard Query Operators contains all of the LINQ-related methods.
A complete list of these operators can be found at the Microsoft MSDN library for the class, System.Linq.Enumerable
.
To have a quick look at all those operators, open the program...