Permalink
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (34 sloc) 869 Bytes

RCS1069: Remove unnecessary case label

Property Value
Id RCS1069
Category Redundancy
Default Severity Hidden
Enabled by Default
Supports Fade-Out
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

switch (s)
{
    case "a":
        return true;
    case "b": // RCS1069
    default:
        return false;
}

Code with Fix

switch (s)
{
    case "a":
        return true;
    default:
        return false;
}

See Also

(Generated with DotMarkdown)