Design Patterns In C#
Design patterns provide general solutions or a flexible way to solve common design problems. This article provides an introduction of design patterns and how design patterns are implemented in C# and .NET.
Before starting with design patterns in .NET, let's understand what is the meaning of design patterns and why they are useful in software architecture and programming.
C# Design Patterns are divided into three categories – creational, structural, and behavioral design patterns.
Creational Design Patterns:
- Singleton Pattern
- Factory Pattern
- Abstract Factory Pattern
- Builder Pattern
- Prototype Pattern
Structural Design Patterns:
- Adapter Pattern
- Composite Pattern
- Proxy Pattern
- Flyweight Pattern
- Facade Pattern
- Bridge Pattern
- Decorator Pattern
Behavioral Design Patterns:
- Template Method Pattern
- Mediator Pattern
- Chain of Responsibility Pattern
- Observer Pattern
- Strategy Pattern
- Command Pattern
- State Pattern
- Visitor Pattern
- Iterator Pattern
- Memento Pattern
Miscellaneous Design Patterns:
- MVC Pattern