Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multithreaded Apps Pin
scadaguy22-Sep-03 8:11
scadaguy22-Sep-03 8:11 
GeneralRe: Multithreaded Apps Pin
Ricardo Moncada22-Sep-03 10:27
Ricardo Moncada22-Sep-03 10:27 
GeneralFreeze form when it removing and reloading ctls Pin
Chris#22-Sep-03 5:57
Chris#22-Sep-03 5:57 
GeneralRe: Freeze form when it removing and reloading ctls Pin
Julian Bucknall [MSFT]22-Sep-03 7:03
Julian Bucknall [MSFT]22-Sep-03 7:03 
GeneralMS Word programming in C#. Pin
bimpy22-Sep-03 5:25
bimpy22-Sep-03 5:25 
GeneralC# switch case style Pin
Don Kackman22-Sep-03 5:24
Don Kackman22-Sep-03 5:24 
GeneralRe: C# switch case style Pin
Julian Bucknall [MSFT]22-Sep-03 7:14
Julian Bucknall [MSFT]22-Sep-03 7:14 
GeneralRe: C# switch case style Pin
Don Kackman22-Sep-03 8:39
Don Kackman22-Sep-03 8:39 
I was getting an error when I was setting up a switch block, and on further examination it looks like it was because I failed to include a break in my default case.

Without the break in the last case statement you get something like: "error CS0163: Control cannot fall through from one case label ('case 2:') to another"

However, when I first encountered the error I found this in the C# MSDN reference on the switch statement:

"Unlike the C++ switch statement, C# does not support an explicit fall through from one case label to another. If you want, you can use goto a switch-case, or goto default."

Now I'm confused, because that apparently doesn't mean what I thought it meant.

The way I read the statement from MSDN, plus if you read the help on error number CS0163 (see reference below), it seems to support my original post.

It seems like either the C# help is in error, or the compiler is in error (or I'm just plain missing something).
Confused | :confused:

don

References

Error CS0163:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003JUL.1033/cscomp/html/vcerrCompilerErrorSC0163.htm

Switch statement help:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003JUL.1033/csref/html/vclrfTheSwitchStatement.htm
GeneralRe: C# switch case style Pin
Julian Bucknall [MSFT]22-Sep-03 10:05
Julian Bucknall [MSFT]22-Sep-03 10:05 
GeneralRe: C# switch case style Pin
Don Kackman22-Sep-03 10:18
Don Kackman22-Sep-03 10:18 
GeneralSmoothing as in MSVisio2002 Pin
Wizard_0122-Sep-03 3:54
Wizard_0122-Sep-03 3:54 
GeneralIE and .NET question Pin
yoaz22-Sep-03 2:34
yoaz22-Sep-03 2:34 
GeneralVisual Studion.Net 2002 closes by itself any time I try loading a C# project Pin
okoji Cyril22-Sep-03 1:20
okoji Cyril22-Sep-03 1:20 
GeneralRe: Visual Studion.Net 2002 closes by itself any time I try loading a C# project Pin
Braulio Dez22-Sep-03 5:06
Braulio Dez22-Sep-03 5:06 
GeneralRe: Visual Studion.Net 2002 closes by itself any time I try loading a C# project Pin
okoji Cyril23-Sep-03 2:02
okoji Cyril23-Sep-03 2:02 
GeneralBooks in C# Pin
nevhile.net22-Sep-03 1:02
nevhile.net22-Sep-03 1:02 
GeneralRe: Books in C# Pin
Azel Low22-Sep-03 3:12
Azel Low22-Sep-03 3:12 
GeneralRe: Books in C# Pin
Braulio Dez22-Sep-03 5:07
Braulio Dez22-Sep-03 5:07 
GeneralRe: Books in C# Pin
phimix22-Sep-03 6:10
phimix22-Sep-03 6:10 
GeneralDowloading a file from a web-site to client using c# Pin
simonzeng22-Sep-03 0:21
simonzeng22-Sep-03 0:21 
Questionhow to parse a dataset Pin
Birdy21-Sep-03 20:51
Birdy21-Sep-03 20:51 
AnswerRe: how to parse a dataset Pin
phimix22-Sep-03 6:13
phimix22-Sep-03 6:13 
GeneralMulti-line ListView control Pin
Member 46249021-Sep-03 20:10
Member 46249021-Sep-03 20:10 
GeneralKeyboard in C# Pin
deanoA21-Sep-03 17:37
deanoA21-Sep-03 17:37 
GeneralRe: Keyboard in C# Pin
Blake Coverett21-Sep-03 19:04
Blake Coverett21-Sep-03 19:04 

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.