13.6. Investigating the C# LINQ Query Operators

C# defines a good number of query operators out of the box. Table 13-3 documents some of the more commonly used query operators.

NOTE

The .NET Framework 4.0 SDK documentation provides full details regarding each of the C# LINQ operators. Look up the topic "LINQ General Programming Guide" for more information.

Table 13.3. Various LINQ Query Operators
Query OperatorsMeaning in Life
from, inUsed to define the backbone for any LINQ expression, which allows you to extract a subset of data from a fitting container.
whereUsed to define a restriction for which items to extract from a container.
selectUsed to select a sequence from the container.
join, on, equals, intoPerforms joins based on specified key. ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition 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.