Code Analysis ReferenceAnalyzersRCS1099On this pageRCS1099: Default label should be the last label in a switch sectionPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csswitch (s){ default: case "a": case "b": break;}fix.csswitch (s){ case "b": case "a": default: break;}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers