Command Design Pattern in C# 2.0

I have posted before about how to implement the observer pattern using C# in a way that is more suitable to C# and uses its functionalities to produce more elegant code.This time I am re-implementing the Command pattern in a C# way.First of all, let’s see the classic Command Pattern UML diagramAs you can see…

0

Observer Pattern in C# = Events & delegates

One of the most interesting patterns in Design Patterns is the Observer pattern which is listed under Behavioral Patterns, it is really important how to make other classes which are interested in the state of another object get notified when the state changed.To read more about Observer patternThis is the classic Observer pattern which used…

3