© { JSL }
73
Text Box: case Notes
case Notes
·unusual syntax
wyou can switch on a string
wfall through is illegal, even on default clause
wyou can goto a case/default label !
Folded Corner:
void Func(string option)
{
    switch (option)
    {
    case "label":
        goto case "jump":
    case "jump":
        goto default;
    case "quit":
        return;
    case "spin":
        for(;;){ }
    case "unwind":
        throw new Exception();
    default:
        break;
    }
}