Code Analysis ReferenceAnalyzersRCS1061On this pageRCS1061: Merge 'if' with nested 'if'PropertiesPropertyValueDefault SeverityHiddenMinimum language version-ExamplesExample #1diagnostic.csif (condition){ if (condition2) { }}fix.csif (condition && condition2){}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers