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 ...
Get Programming Microsoft® Visual C#® 2008: The Language 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.