all things Sitecore related

Design Patterns

Design Patterns(C#): Basic example Strategy pattern

Design Patterns(C#): Basic example Strategy pattern

In this example I´m going to explane the strategy pattern. With this example you can do a calculation with two numbers (-/+) and expand the number of operators (/, *, etc.). First create a interface which defines the interface of the operator classes. For this example an operator can only calculate two values. //The interface […]

Continue Reading »

Top