spivonious said:W3bbo said:*snip*Is break redundant? Does the C# switch statement support multiple cases like VB's does? Otherwise, I'd still want the power to fall down into the next case.
Select Case someFlag
Case specialFlag
'some code
Case normalFlag, otherFlag
'other code
End Select
switch(someFlag)
{
case specialFlag:
//some code
break;
case normalFlag:
case otherFlag:
//other code
break;
}
Yes you can drop down, but I don't think I've used default in 5 years of C#