Code Analysis ReferenceAnalyzersRCS1103On this pageRCS1103: Convert 'if' to assignmentPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csif (condition){ f = true;}else{ f = false;}fix.csf = condition;Example #2diagnostic.csif (x != null){ y = x;}else{ y = null;}fix.csy = x;Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers