411 REFERENCE · Wikibooks
C Sharp Programming/Keywords/when
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Keywords when
__TOC__
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).