Code Analysis ReferenceAnalyzersRCS1187On this pageRCS1187: Use constant instead of fieldPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csprivate static readonly int _foo = 0;fix.csprivate const int _foo = 0;Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers