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

C#

 
QuestionControl cannot fall through from one case label ('case 64:') to another? Pin
dec8215-Mar-09 17:15
dec8215-Mar-09 17:15 
AnswerRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Christian Graus15-Mar-09 18:34
protectorChristian Graus15-Mar-09 18:34 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
dec8215-Mar-09 18:55
dec8215-Mar-09 18:55 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
S. Senthil Kumar15-Mar-09 19:10
S. Senthil Kumar15-Mar-09 19:10 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Christian Graus15-Mar-09 19:12
protectorChristian Graus15-Mar-09 19:12 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
dec8215-Mar-09 19:16
dec8215-Mar-09 19:16 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
S. Senthil Kumar15-Mar-09 19:45
S. Senthil Kumar15-Mar-09 19:45 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Dave Kreskowiak15-Mar-09 20:23
mveDave Kreskowiak15-Mar-09 20:23 
dec82 wrote:
i prefer not make a case into a function


OMG | :OMG: OK, you're really doing it the wrong way then. You're making a single monolithic method that does everything instead of breaking up the code into FAR more manageable, supportable, and extendable pieces. I'm afraid if you were working for me, I'd have to fire you for doing that. No joke...

I'd probably have to question the validity of using a Switch with 100 cases in it too. But, I say that without knowing anything about what your app does of its data model. If you were using a switch on an integer value, I'd probably look into using delegates stacked in an array or hashtable to shorten up the code and increase its performance. You know, using the switch value as an index into an array? But, like I said, it's only a thought based on no knowledge of what your code is doing or its requirements.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Christian Graus15-Mar-09 20:33
protectorChristian Graus15-Mar-09 20:33 
AnswerRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Megidolaon16-Mar-09 1:49
Megidolaon16-Mar-09 1:49 
QuestionMake Transparent....??? Pin
S K Y15-Mar-09 16:44
S K Y15-Mar-09 16:44 
AnswerRe: Make Transparent....??? Pin
Christian Graus15-Mar-09 18:36
protectorChristian Graus15-Mar-09 18:36 
GeneralRe: Make Transparent....??? Pin
S K Y15-Mar-09 21:13
S K Y15-Mar-09 21:13 
AnswerRe: Make Transparent....??? Pin
#realJSOP16-Mar-09 2:53
mve#realJSOP16-Mar-09 2:53 
GeneralRe: Make Transparent....??? Pin
S K Y16-Mar-09 14:52
S K Y16-Mar-09 14:52 
GeneralRe: Make Transparent....??? Pin
#realJSOP18-Mar-09 1:22
mve#realJSOP18-Mar-09 1:22 
QuestionGridView and SEO Pin
Feddo0415-Mar-09 15:13
Feddo0415-Mar-09 15:13 
AnswerRe: GridView and SEO Pin
Colin Angus Mackay15-Mar-09 15:47
Colin Angus Mackay15-Mar-09 15:47 
GeneralRe: GridView and SEO Pin
Feddo0415-Mar-09 16:04
Feddo0415-Mar-09 16:04 
GeneralRe: GridView and SEO Pin
Colin Angus Mackay15-Mar-09 16:11
Colin Angus Mackay15-Mar-09 16:11 
GeneralRe: GridView and SEO Pin
Feddo0420-Mar-09 5:09
Feddo0420-Mar-09 5:09 
QuestionObjects on another form Pin
Jon Henry15-Mar-09 13:45
Jon Henry15-Mar-09 13:45 
AnswerRe: Objects on another form Pin
Christian Graus15-Mar-09 14:11
protectorChristian Graus15-Mar-09 14:11 
GeneralRe: Objects on another form Pin
Jon Henry15-Mar-09 14:30
Jon Henry15-Mar-09 14:30 
GeneralRe: Objects on another form Pin
Christian Graus15-Mar-09 18:39
protectorChristian Graus15-Mar-09 18:39 

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.