Extract expression from condition
| Property | Value | 
|---|---|
| Id | RR0043 | 
| Applicable Syntax | if statement, while statement | 
| Syntax Span | condition | 
| Enabled by Default | ✓ | 
Usage
Example #1
before.cs
if (x && y) // Select 'y'
{
}
after.cs
if(x)
{
    if (y)
    {
    }
}
Example #2
before.cs
if (x || y) // Select 'y'
{
}
after.cs
if(x)
{
}
if (y)
{
}
Configuration
roslynator_refactoring.extract_expression_from_condition.enabled = true|false