LINQ Operators
Operators are the essential ingredients of a LINQ query expression. Several operators, such as Where, Join, and Select, already have been featured in previous samples. The operators accept IEnumerable<T> and IQueryable<T> interfaces as input. The IEnumerable<T> interface supports iteration. IQueryable<T> is implemented by a LINQ provider to evaluate query expressions in that context. For example, the LINQ to XML provider implements the IQuerable<T> interface to provide XML-specific behavior. IQueryable<T> inherits the IEnumerable<T> interface. For that reason, IQueryable<T> objects are also enumerable.
There are several operators, which are grouped into categories. In this section, all the operators in LINQ are presented. The operators ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access