Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > using a switch block to determine the direction of methods and events

Reply
Thread Tools

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

 
 
Andy B
Guest
Posts: n/a
 
      05-28-2008
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?



 
Reply With Quote
 
 
 
 
Alvin Bruney [ASP.NET MVP]
Guest
Posts: n/a
 
      05-28-2008
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?
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to find the class methods of a class, just like'methods' finds the instance methods? Kenneth McDonald Ruby 5 09-26-2008 03:09 PM
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
Dynamically switch page direction =?Utf-8?B?bW9oZG93YWlz?= ASP .Net 4 06-17-2004 06:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57