Design Patterns In C#: Prototype
Definition Create customized objects without knowing their class or any details of how to create them. This can be a useful pattern when there is a large cost of creating a new object and is resource...
View ArticleDesign Patterns In C#: Adapter
Definition The adapter pattern is useful for adapting between classes and objects. It can be useful when interacting with or translating data from third party software or legacy code. It these cases it...
View ArticleDesign Patterns In C#: Bridge
Definition Decouple an abstraction from its implementation so that the two can vary independently. Intent Sometimes an abstraction has different implementations. In the code below we consider an...
View ArticleDesign Patterns In C#: Composite
Definition Compose objects into tree structures to represent part-whole hierarchies. It lets clients treat individual objects and compositions of objects uniformly.Here is a UML diagram of the pattern...
View ArticleDesign Patterns In C#: Decorator
Definition Add additional responsibilities dynamically to an object. Useful when subclassing would be sub-optimal due to the large number of subclasses that would result. Here is a UML diagram of the...
View ArticleDesign Patterns In C#: Flyweight
Definition Use sharing to support a large number of objects that have part of their internal state in common and another part that can vary.Here is a UML diagram of the pattern (click on the image to...
View Article
More Pages to Explore .....