Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tobbie/c-sharp-design-patterns

Gang of Four design patterns in c#
https://github.com/tobbie/c-sharp-design-patterns

abstract-factory behavioral-patterns builder creational-patterns factory-pattern prototype singleton-pattern structural-patterns

Last synced: 26 days ago
JSON representation

Gang of Four design patterns in c#

Awesome Lists containing this project

README

        

[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Ftobbie%2Fc-sharp-design-patterns&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=views&edge_flat=false)](https://hits.seeyoufarm.com)

## Design Patterns in C# - A collection of the Gang Of Four patterns (WIP)
The project is a group of class libraries that contain creational, behavioral and structural design patterns

### Creational patterns
* Prototype
* Singleton
* Factory Method
* Abstract Factory
* Builder

### Structural patterns
* Adapter
* Bridge
* Composite
* Decorator
* Facade
* Flyweight
* Proxy

### Behavioural patterns

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

To get started, clone the repo, build the project, then run the console application named Program.EntryPoint.
Here you'll find methods which you can uncomment to test out the pattern.

This solution requires `.NET 6` to run. Happy coding! :)

### To learn more about software design patterns
Please visit [the design pattern catalog here](https://refactoring.guru/design-patterns/catalog)

### To contribute
Please visit [the contribution guide](https://github.com/tobbie/c-sharp-design-patterns/blob/main/CONTRIBUTING.md)