C# Programming/Keywords/when
The when
contextual keyword is used to provide filtering capabilities in a catch
statement or a case label of a switch statement. The keyword immediately precedes a condition, e.g., when
(lifeValue < 1).
C# Keywords | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Special C# Identifiers (Contextual Keywords) | |||||||||||||||
| |||||||||||||||
Contextual Keywords (Used in Queries) | |||||||||||||||
|