Leveraging Interfaces and Extension Methods To Extend Your Classes
Why always look to create new classes or functions in a class when we can extend existing classes. I found these two (Interfaces & Extension methods) very strong practices to support this approach. We have long history of Interfaces, please also check how useful Extensions methods are.
Extension methods provide a great way for extending a class functionality -- but it's interfaces that let you use those methods anywhere you want.
Extension methods gives you advancement and interfaces gives you power to extend. Good to keep both these options handy when designing a solution.
http://visualstudiomagazine.com/articles/2014/08/01/leveraging-interfaces.aspx
0 Comment(s)