Code Analysis ReferenceAnalyzersRCS1238On this pageRCS1238: Avoid nested ?: operatorsPropertiesPropertyValueDefault SeverityHiddenMinimum language version-ExamplesExample #1diagnostic.csvar x = (a) ? "a" : (b) ? "b" : "c";fix.csvar x;if (a){ x = "a";}else if (b){ x = "b";}else{ x = "c";}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers