Short examples of several design patterns with written in C#.
The goal of this repository is to provide a meaningful implementation example of each pattern in order to help the reader to grasp the underlying intention behind them.
Thread safety, error handling, etc. are not a concern in those and are considered as implementation details.
If you would like to go deeper, Raw Coding is doing an excellent work with its video tutorials. If you prefer a written explanation, TutorialsPoint comes with a great number of examples (in Java) and Refactoring Guru with a more language-agnostic approach, detailing the heart of the problem.
Each implemented pattern can be found in the folder associated to its category:
The
.Dump()
method is part of LINQPad, check it out if you want to run those examples as is
Several patterns are still missing. If you would like to see a new one, please open an issue with its name and category !