Vikas's Technical Blog
Mission: Achieve .Net Proficiency
Tuesday, December 10, 2013
Switch is bad.
Switch statement in c# code is bad smell.
It should be replaced by strategy pattern.
It doesn't allow us to implement polymorphism which is a key concept of oops
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment