Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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#
- Host: GitHub
- URL: https://github.com/tobbie/c-sharp-design-patterns
- Owner: tobbie
- License: mit
- Created: 2021-06-26T19:26:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T02:51:40.000Z (about 1 year ago)
- Last Synced: 2023-12-18T06:24:44.056Z (about 1 year ago)
- Topics: abstract-factory, behavioral-patterns, builder, creational-patterns, factory-pattern, prototype, singleton-pattern, structural-patterns
- Language: C#
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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
* MementoTo 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)