Skip to content

A practical collection of all 23 Gang of Four design patterns, bringing theory to life with real-world C# implementations for better software design.

Notifications You must be signed in to change notification settings

MeltricCode/DesignPatterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡 Design Patterns (GoF) in C#

This repository contains implementations of all Gang of Four (GoF) design patterns in C#. The goal of this project is to provide clear and simple examples for each pattern, making it easier for developers to understand and apply them in their projects.

📐 Pattern Categories

📌Creational Patterns

  • Abstract Factory
  • Builder
  • Factory Method
  • Prototype
  • Singleton

📌Structural Patterns

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Proxy

📌Behavioral Patterns

  • Chain of Responsibility
  • Command
  • Interpreter
  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor

📚 Resources

Book: Design Patterns: Elements of Reusable Object-Oriented Software (Gang of Four)

🎯 Project Goals

  • ✅ Improve understanding of design patterns

  • ✅ Provide practical and readable examples

  • ✅ Help developers improve software design

  • ⭐ If you find this helpful, please give it a star ⭐

🚀 How to Use

You can clone this repository and run each pattern independently:

  1. Clone the repository:
    git clone https://github.com/MeltricCode/DesignPatterns.git
  2. Navigate to the project directory:
    cd DesignPatterns
  3. Build and run the project in Visual Studio or via .NET CLI:
    dotnet run

About

A practical collection of all 23 Gang of Four design patterns, bringing theory to life with real-world C# implementations for better software design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages