في المثال الثاني ، يتم تضمين بيان فاصل في نهاية كل حالة. هذا ينفذ البيانات في القضية دون الاستمرار في القضية القادمة. بدون بيان الاستراحة ، سيستمر البرنامج في تنفيذ الحالة التالية ولن يعمل على النحو المنشود.
## مثال
`switch (exampleVariable)
{
case 1:
Console.WriteLine("case 1");
Console.WriteLine("This only shows in example 1");
break;
case 2:
Console.WriteLine("case 2");
Console.WriteLine("This only shows in example 2");
Console.WriteLine("This also only shows in example 2");
break;
Console.WriteLine("This would not show anywhere, as it is after the break line and before the next case");
default:
Console.WriteLine("default");
Console.WriteLine("This only shows in the Default Example");