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

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

Alvin Bruney [ASP.NET MVP]

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

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top