TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C# Coding Standard

Rule:  6@105Checked automatically with code checker

Synopsis:All switch statements shall have a default label as the last case label
Severity Level:2
Category:Control flow


A comment such as 'no action' is recommended where this is the explicit intention. If the default case should be unreachable, an assertion to this effect is recommended.

If the default label is always the last one, it is easy to locate.