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

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

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?
 
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top