c# switch case with or condition

C#
int i = 5;
switch (i)
{
    case(1):
    case(2):
        Console.WriteLine(i);
        break;
    default:
        break;
}
Source

Also in C#: