Code Analysis ReferenceAnalyzersRCS1118On this pageRCS1118: Mark local variable as constPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csstring s = "a";string s2 = s + "b";fix.csconst string s = "a";string s2 = s + "b";Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers