Code Analysis ReferenceAnalyzersRCS1173On this pageRCS1173: Use coalesce expression instead of 'if'PropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csif (x != null){ z = x;}else{ z = y;}fix.csz = x ?? y;Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers