RCS1070: Remove redundant default switch section
Properties
Property | Value |
---|---|
Default Severity | Hidden |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
switch (s)
{
case "a":
return true;
case "b":
return false;
default:
break;
}
fix.cs
switch (s)
{
case "a":
return true;
case "b":
return false;
}