C# Programming/Keywords/in
The in
keyword identifies the collection to enumerate in a foreach
loop.
The in
keyword may also be used in a query, e.g., 'from
item in
dataset'. Immediately following the contextual keyword from
is a range variable representing one item in the dataset. The dataset to be queried is defined immediately following the contextual keyword in
. See also ascending
, descending
, in
, orderby
, select
, and where
.
C# Keywords | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Special C# Identifiers (Contextual Keywords) | |||||||||||||||
| |||||||||||||||
Contextual Keywords (Used in Queries) | |||||||||||||||
|