switch (caseSwitch) // Match Expression - can be any non-null expression
{
case 1: // Case Label 1 Switch Section START
case 2: // Case Label 2
// ...
break; // Switch Section END
case 3: // Case Label 3 Switch Section START
// ...
break; // Switch Section END
default: // Default Label Switch Section START
// ...
break; // Switch Section END
}
switch (caseSwitch)
{
...
case TypeA myVar when myVar.Size > 0:
...
break;
case <type> <variable_name> when <any_boolean_expression>:
...
break;
...
}