3
shouts

Dot Net Cube | Design Patterns – Using the Strategy Pattern in C#

posted by dncdudedncdude 216 days, 5 hours, 35 minutes ago
Wednesday, July 08, 2009 10:39:06 PM GMT

A Strategy Pattern belongs to the Behavioral Pattern category. It helps in de-coupling the client and the algorithms into separate classes. The object and it’s behavior are encapsulated into their own classes. This pattern helps in several ways. It helps you to switch algorithms at any time. In future, if you decide to add a new algorithm, it’s simpler as all you have to do is add a new class that encapsulates the new behavior.

category: Architecture | clicked: 20 | | source: www.dotnetcube.com | show counter code
tags: Architecture, ASP.NET, C#, Design Pattern

No comments yet, be the first one to post comment.

To post your comment please login or signup