switch statements should have default label as the last label::is FxCop rule for this is possible in Fxcop 10.0 as it was not possible in older version.
if possible can any1 provide me the custom Fxcop rule source coe for this
Moved byCoolDadTxMVPThursday, April 19, 2012 1:56 PMCode analysis related (From:Visual C# General)
The Switch statement can be optimized in many different ways (small switch/case statements result in if/else, large statements are converted to a HashSet). So it will not be possible to check this from the compiled code. Instead you should use a StyleCop
rule. They have a dedicated forum for these kinds of questions.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.