NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0163

Control cannot fall through from one case label ('label') to another

When a case statement contains one or more statements and is followed by another case statement, one of the following statements must explicitly terminate the case:

If you want to implement "fall through" behavior, use goto case #.

The following sample generates CS0163:

public class MyClass {
   public static void Main() {
      int i = 0;
      switch (i) {
         case 1:
            i++;
            // uncomment one of the following lines to resolve
            // return;
            // break;
            // goto case 3;
         case 2:
            i++;
            return;
         case 3:
            i = 0;
            return;
      }
   }
}