Follow

What is CS0163?

Symptoms

  • I am getting the error below appearing in my console:
error CS0163: Control cannot fall through from one case label to another

Cause

CS0163 is caused when a switch with more than one case is not explicitly terminated within each section. This is required as a switch does not allow multiple cases to be used in the same iteration of the switch.

Resolution

CS0163 is fixed by adding either of the following statements to each case.

More Information

https://msdn.microsoft.com/en-us/library/843c4c28.aspx

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Joe King

    One small correction continue will not work in the switch statement. If a fall-through is needed on can write

        goto case "Hotbar"';

    at the location of the first arrow.

Please sign in to leave a comment.