using a switch block to determine the direction of methods and events

Discussion in 'ASP .Net' started by Andy B, May 28, 2008.

  1. Andy B

    Andy B Guest

    I have a method called FreezeWizardStep. I want to use a string argument
    called WizardStepName (string). A switch block would determine what needs to
    be done based on the wizardStepName. Should this be done or should I stick
    to smaller individual methods that freeze each wizard step by themselves?
    Andy B, May 28, 2008
    #1
    1. Advertising

  2. Either, I'd go for readability in this case and do the switch though that
    buys you nothing over an individual method practically speaking.

    --

    Regards,
    Alvin Bruney [MVP ASP.NET]

    [Shameless Author plug]
    The O.W.C. Black Book, 2nd Edition
    Exclusively on www.lulu.com/owc $19.99
    -------------------------------------------------------


    "Andy B" <> wrote in message
    news:...
    > I have a method called FreezeWizardStep. I want to use a string argument
    > called WizardStepName (string). A switch block would determine what needs
    > to be done based on the wizardStepName. Should this be done or should I
    > stick to smaller individual methods that freeze each wizard step by
    > themselves?
    >
    >
    >
    Alvin Bruney [ASP.NET MVP], May 29, 2008
    #2
    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. =?Utf-8?B?bW9oZG93YWlz?=

    Dynamically switch page direction

    =?Utf-8?B?bW9oZG93YWlz?=, Jun 10, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    565
    =?Utf-8?B?bW9oZG93YWlz?=
    Jun 17, 2004
  2. morrell
    Replies:
    1
    Views:
    946
    roy axenov
    Oct 10, 2006
  3. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    352
    Chris
    Aug 30, 2005
  4. Peña, Botp
    Replies:
    1
    Views:
    229
    Robert Klemme
    Jan 24, 2004
  5. Switch Within A Switch

    , Apr 22, 2006, in forum: Javascript
    Replies:
    7
    Views:
    106
    Lasse Reichstein Nielsen
    Apr 22, 2006
Loading...

Share This Page