Today I found myself using a switch statement to determine which method to invoke depending on the value of a variable. The code looked messy and wasn't very flexible. The fix was to use a dictionary with delegates.
|
5
shouts |
|
|||
No comments yet, be the first one to post comment.