Code Analysis ReferenceAnalyzersRCS1212On this pageRCS1212: Remove redundant assignmentPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csstring x;x = "";fix.csstring x = "";Example #2diagnostic.csbool M(){ // ... x = false; return x;}fix.csbool M(){ // ... return false;}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers