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

C#

 
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 
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 
I need to convert these C++ code into C# code . What's is the easiest way ? thanks

state=1

switch (state)
{

case 1:
//do something
state++;

case 2:

//do something
if ( )
{
state++;
}
else
{
state=state+5;
}
break;
case 3:
//do something
state++;

............


case 100:

break;
}
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? PinPopular
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
mvaPaulo Zemek13-May-09 3:38 
GeneralRe: Control cannot fall through from one case to another? [modified] Pin
Paulo Zemek13-May-09 3:45
mvaPaulo Zemek13-May-09 3:45 
GeneralRe: Control cannot fall through from one case to another? Pin
Luc Pattyn13-May-09 3:46
sitebuilderLuc Pattyn13-May-09 3:46 
GeneralRe: Control cannot fall through from one case to another? Pin
Paulo Zemek13-May-09 3:51
mvaPaulo Zemek13-May-09 3:51 

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.