Monday, March 12, 2012

worth extracting method

hey all,
i have about a 40 or more lines in my switch statement and was just
wondering if it was worth extracting out the individual case statement which
would involve passing a Table object, 2 ints and a string?

What's the rule of thumb?

thanks,
rodchari may have posted this in the wrong section. i'm going to repost at c# if ok,
i apologize for duplicate.

"rodchar" wrote:

Quote:

Originally Posted by

hey all,
i have about a 40 or more lines in my switch statement and was just
wondering if it was worth extracting out the individual case statement which
would involve passing a Table object, 2 ints and a string?
>
What's the rule of thumb?
>
thanks,
rodchar

0 comments:

Post a Comment