C# Programming/Keywords/select
Appearance
From Wikibooks, open books for an open world
The latest reviewed version was checked on 23 January 2019. There are template/file changes awaiting review.
C# Programming
Cover | Introduction | Basics | Classes | Advanced Topics | The .NET Framework | Index
Cover | Introduction | Basics | Classes | Advanced Topics | The .NET Framework | Index
The select
contextual keyword is used to determine what variables to return at the end of a query, e.g., 'from
item in
dataset select
id'. Immediately following the contextual keyword select
is an expression that may be as simple as a single attribute of each item returned or the item itself. The expression could include a list of attributes or it could be a more complex expression that transforms the returned results of the query into new types.
C# Keywords |
---|
Special C# Identifiers (Contextual Keywords) |
Contextual Keywords (Used in Queries) |