📜  c#代码示例中可以有多个语句吗

📅  最后修改于: 2022-03-11 14:49:09.344000             🧑  作者: Mango

代码示例1
switch (value)
{
    case 1: case 2: case 3:          
        // Do Something
        break;
    case 4: case 5: case 6: 
        // Do Something
        break;
    default:
        // Do Something
        break;
}