Comprehensive implementations of Gang of Four (GoF) design patterns in C#. Written in Bangla comments for Bengali-speaking developers learning OOP design patterns.
- Abstract Factory
- Builder
- Factory Method
- Prototype
- Singleton
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Flyweight
- Proxy (via Null Object Pattern)
- Chain of Responsibility
- Command
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
- C# / .NET
- Visual Studio solution (
.sln)
- .NET SDK 4.x or later, or
- Visual Studio 2019+
git clone https://github.com/ahasan09/csharp-design-patterns
cd csharp-design-patterns/GofPattern
dotnet build DesignPatterns.sln
dotnet run --project Singleton/- Open
GofPattern/DesignPatterns.slnin Visual Studio - Set the desired pattern project as the startup project
- Press F5 to run
GofPattern/
├── Singleton/
├── FactoryMethod/
├── AbstracFactory/
├── Builder/
├── Prototype/
├── Adaptor/
├── BridgePattern/
├── CompositeDesignPattern/
├── Decorator/
├── FacadePattern/
├── FlyWeight/
├── ChainofResponsibility/
├── CommandPattern/
├── MediatorPattern/
├── Memento/
├── NullObjectPattern/
├── Observer/
├── StateDesignPattern/
├── Strategy/
├── TempletMethod/
└── VisitorDesignPattern/