Skip to main content

Merge if with parent if

PropertyValue
IdRR0196
Applicable Syntaxif statement
Syntax Spanif keyword
Enabled by Default

Usage

Example #1

before.cs
if (x)
{
if (y)
{
}
}
else
{
}
after.cs
if (x && y)
{
}
else
{
}

Configuration

roslynator_refactoring.merge_if_with_parent_if.enabled = true|false