Select Case vs switch

Discussion in 'MCAD' started by Tony, Feb 3, 2004.

  1. Tony

    Tony Guest

    Hi all

    Does anybody know if Microsoft is planning to introduce
    C#'s switch to evaluate expressions instead of constants,
    and to be able to do a switch on a range just like using
    the 'To' in VB's Select Case?

    This is really the only thing I've come across yet where
    I wish C# had something that VB.NET has.
     
    Tony, Feb 3, 2004
    #1
    1. Advertising

  2. Tony

    Tony Guest

    I also love With in VB.

    I don't get it. C# has more advanced features such as
    operator overloading and unsafe code and pointers, even
    generics, so how come Microsoft can't include the nice
    little time saving conveniences from VB into C#. It would
    give the language pretty much everything I'd want :(
     
    Tony, Feb 3, 2004
    #2
    1. Advertising

  3. Tony

    james Guest

    I wish that C# had the with statement. That makes life really easy, especially with ADO.net
     
    james, Feb 3, 2004
    #3
  4. Tony

    Hermit Dave Guest

    most people using C# are those that moved from C++... and most of are used
    to the hard way.
    infact at times the lengthy with statements tend to increase the look ups
    specially while debugging (have done a bit of VB programming in past and
    okay i did find it easy to use the with statement but somehow i could very
    well do without it)... and i guess most would agree when i say we prefer it
    the hard way.

    think with .net adopting VB programming model (i.e. the ease) to an extent
    was good enough. and there's still a VB.NET for all those that fancy
    everything VB.
    --

    Regards,
    HD
    "james" <> wrote in message
    news:...
    >I wish that C# had the with statement. That makes life really easy,
    >especially with ADO.net
     
    Hermit Dave, Feb 4, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. comp.dcom.sys.cisco

    How to select a stable IOS version for switch ?

    comp.dcom.sys.cisco, Aug 5, 2005, in forum: Cisco
    Replies:
    2
    Views:
    1,312
    comp.dcom.sys.cisco
    Aug 9, 2005
  2. Ray
    Replies:
    0
    Views:
    1,051
  3. Guest

    question in select case

    Guest, Feb 19, 2004, in forum: MCAD
    Replies:
    2
    Views:
    511
  4. spuk

    Select Case

    spuk, Jan 31, 2010, in forum: General Computer Support
    Replies:
    0
    Views:
    1,213
  5. Becky

    NZXT Switch 810 Case

    Becky, Jan 26, 2012, in forum: Front Page News
    Replies:
    0
    Views:
    940
    Becky
    Jan 26, 2012
Loading...

Share This Page