Check out example codes for "c# switch case with or condition". It will help you in understanding the concepts better.
Code Example 1
int i = 5;
switch (i)
{
case(1):
case(2):
Console.WriteLine(i);
break;
default:
break;
}
Learn ReactJs, React Native from akashmittal.com