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

Rule:  6@105Checked automatically with code checker

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


Description:

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.