This section contains the contextual keywords used in query expressions.
Clause
Description
from clause (C# Reference)
Specifies a data source and a range variable (similar to an iteration variable).
where clause (C# Reference)
Filters source elements based on one or more Boolean expressions separated by logical AND and OR operators ( && or || ).
select clause (C# Reference)
Specifies the type and shape that the elements in the returned sequence will have when the query is executed.
group clause (C# Reference)
Groups query results according to a specified key value.
into (C# Reference)
Provides an identifier that can serve as a reference to the results of a join, group or select clause.
orderby clause (C# Reference)
Sorts query results in ascending or descending order based on the default comparer for the element type.
join clause (C# Reference)
Joins two data sources based on an equality comparison between two specified matching criteria.
let clause (C# Reference)
Introduces a range variable to store sub-expression results in a query expression.