switch keyword (C# Reference) | Microsoft Docs
switch (C# Reference) 03/07/2017; 15 minutes to read Contributors. all; In this article. switch is a selection statement that chooses a single switch section to execute from a list of candidates based on a pattern match with the match expression.