Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.16 KB

RR0059.md

File metadata and controls

57 lines (47 loc) · 1.16 KB

Add missing cases to switch statement

Property Value
Id RR0059
Title Add missing cases to switch statement
Syntax switch statement
Enabled by Default

Usage

Before

switch (dayOfWeek)
{
    case DayOfWeek.Sunday:
        break;
    case DayOfWeek.Monday:
        break;
    case DayOfWeek.Tuesday:
        break;
    case DayOfWeek.Wednesday:
        break;
    case DayOfWeek.Thursday:
        break;
}

After

switch (dayOfWeek)
{
    case DayOfWeek.Sunday:
        break;
    case DayOfWeek.Monday:
        break;
    case DayOfWeek.Tuesday:
        break;
    case DayOfWeek.Wednesday:
        break;
    case DayOfWeek.Thursday:
        break;
    case DayOfWeek.Friday:
        break;
    case DayOfWeek.Saturday:
        break;
}

See Also

(Generated with DotMarkdown)