Tech Off Post

Single Post Permalink

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

    W3bbo said:

    Simplying the C# switch statement would be nice, the 'break' statement is redundant.


    But don't we have these threads all the time thesedays?

    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