Code Analysis ReferenceAnalyzersRCS1161On this pageRCS1161: Enum should declare explicit valuesPropertiesPropertyValueDefault SeverityHiddenMinimum language version-ExamplesExample #1diagnostic.cspublic enum Foo{ A, B, C,}fix.cspublic enum Foo{ A = 0, B = 1, C = 2,}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers