Copy switch section
Property | Value |
---|---|
Id | RR0212 |
Applicable Syntax | switch section |
Syntax Span | close brace or empty line after switch section |
Enabled by Default | ✓ |
Usage
Example #1
before.cs
switch (s)
{
case "a":
{
// ...
break;
}
default:
{
break;
}
}
after.cs
switch (s)
{
case "a":
{
// ...
break;
}
case "a":
{
// ...
break;
}
default:
{
break;
}
}
Configuration
roslynator_refactoring.copy_switch_section.enabled = true|false