by didgetmaster · 3y ago · 0 comments
switch(x) { case 1: DoSomething(); case 2: DoSomethingElse(); case 3: SomePrep(); fallthrough; case 4: DoMore(); default: DoNothing; }
Only one statement needed to have case 3 fall through to case 4. No breaks needed at the end of any other cases.
No comments yet.