Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: Control cannot fall through from one case to another? Pin
Mycroft Holmes12-May-09 23:30
professionalMycroft Holmes12-May-09 23:30 
GeneralRe: Control cannot fall through from one case to another? Pin
OriginalGriff13-May-09 1:57
mveOriginalGriff13-May-09 1:57 
GeneralRe: Control cannot fall through from one case to another? Pin
Dan Neely13-May-09 2:08
Dan Neely13-May-09 2:08 
GeneralRe: Control cannot fall through from one case to another? Pin
Nagy Vilmos13-May-09 3:23
professionalNagy Vilmos13-May-09 3:23 
GeneralRe: Control cannot fall through from one case to another? Pin
OriginalGriff13-May-09 3:43
mveOriginalGriff13-May-09 3:43 
GeneralRe: Control cannot fall through from one case to another? Pin
PIEBALDconsult13-May-09 3:33
mvePIEBALDconsult13-May-09 3:33 
GeneralRe: Control cannot fall through from one case to another? Pin
Dan Neely13-May-09 4:00
Dan Neely13-May-09 4:00 
GeneralRe: Control cannot fall through from one case to another? Pin
molesworth13-May-09 4:24
molesworth13-May-09 4:24 
dan neely wrote:
Outside of a single school exercise (Generate the complete lyrics for the 12 days of Christmas) I can't think of a single case where falling through was desired behavior.


It does happen occasionally. My current project has two switches where it was much clearer to add a "goto" rather than convoluted logic.

The important thing, of course, is to comment it properly so everyone can see exactly what's being done, and why.

There are three kinds of people in the world - those who can count and those who can't...

GeneralRe: Control cannot fall through from one case to another? Pin
PIEBALDconsult13-May-09 5:24
mvePIEBALDconsult13-May-09 5:24 
GeneralRe: Control cannot fall through from one case to another? Pin
Mycroft Holmes13-May-09 14:42
professionalMycroft Holmes13-May-09 14:42 
AnswerRe: Control cannot fall through from one case to another? Pin
dec8212-May-09 23:08
dec8212-May-09 23:08 
GeneralRe: Control cannot fall through from one case to another? Pin
Lutosław12-May-09 23:23
Lutosław12-May-09 23:23 
GeneralRe: Control cannot fall through from one case to another? Pin
OriginalGriff13-May-09 0:07
mveOriginalGriff13-May-09 0:07 
GeneralRe: Control cannot fall through from one case to another? Pin
dec8213-May-09 21:57
dec8213-May-09 21:57 
GeneralRe: Control cannot fall through from one case to another? Pin
EliottA13-May-09 2:31
EliottA13-May-09 2:31 
QuestionRe: Control cannot fall through from one case to another? Pin
Lutosław13-May-09 5:18
Lutosław13-May-09 5:18 
AnswerRe: Control cannot fall through from one case to another? Pin
OriginalGriff13-May-09 5:52
mveOriginalGriff13-May-09 5:52 
GeneralRe: Control cannot fall through from one case to another? Pin
Lutosław13-May-09 8:53
Lutosław13-May-09 8:53 
GeneralRe: Control cannot fall through from one case to another? Pin
OriginalGriff13-May-09 8:55
mveOriginalGriff13-May-09 8:55 
AnswerRe: Control cannot fall through from one case to another? Pin
0x3c013-May-09 0:08
0x3c013-May-09 0:08 
GeneralRe: Control cannot fall through from one case to another? Pin
Luc Pattyn13-May-09 1:20
sitebuilderLuc Pattyn13-May-09 1:20 
GeneralRe: Control cannot fall through from one case to another? Pin
OriginalGriff13-May-09 2:10
mveOriginalGriff13-May-09 2:10 
GeneralRe: Control cannot fall through from one case to another? Pin
PIEBALDconsult13-May-09 3:38
mvePIEBALDconsult13-May-09 3:38 
GeneralRe: Control cannot fall through from one case to another? Pin
molesworth13-May-09 4:29
molesworth13-May-09 4:29 
AnswerRe: Control cannot fall through from one case to another? [modified] Pin
Paulo Zemek13-May-09 3:38
Paulo Zemek13-May-09 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.