O'Reilly logo

Pro C# 2010 and the .NET 4 Platform, Fifth Edition by Andrew Troelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required