Tech Off Post

Single Post Permalink

View Thread: Features you like added to, c# or any other .net language.
  • User profile image

    spivonious said:
    W3bbo said:

    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




       case specialFlag:

          //some code


       case normalFlag:

       case otherFlag:

          //other code



    Yes you can drop down, but I don't think I've used default in 5 years of C#