参考地址
栗子如下
int a = 3; //为1或者2的时候,可以打印出来
switch (a)
{
case 1:
case 2:
{
Console.WriteLine(a);
break;
}
}