Code Analysis ReferenceAnalyzersRCS1179On this pageRCS1179: Unnecessary assignmentPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csif (condition){ x = 1;}else{ x = 2;}return x;fix.csif (condition){ return 1;}else{ return 2;}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers