The keyword case or default must precede code in switch block
Code was found in a switch statement that was part of neither a case nor a default block.
The following sample generates CS1523:
class x { public static void Main() { int i = 0; switch (i) { i = 6; // CS1523, code not under a label // try the following /* default: i = 6; */ } } }