J
jp2msft
Can switch statements be nested?
I've got a large routine that runs off of a switch statement.
If one of the switches in switch #1 is true, that enters switch statement #2.
Some of the statements in switch #2 enter a 3rd switch.
I don't receive any compile errors except whenever I attempt to add default
switches to switches 2 or 3.
Am I nesting too deep, or do I need to call the deeply nested switches in a
special way?
If this is all fine and dandy in C#, then I need to look harder for errors
in my code.
I've got a large routine that runs off of a switch statement.
If one of the switches in switch #1 is true, that enters switch statement #2.
Some of the statements in switch #2 enter a 3rd switch.
I don't receive any compile errors except whenever I attempt to add default
switches to switches 2 or 3.
Am I nesting too deep, or do I need to call the deeply nested switches in a
special way?
If this is all fine and dandy in C#, then I need to look harder for errors
in my code.