This repository contains simple implementations of various design patterns in C#/.NET. Design patterns are reusable solutions to common problems in software design and can significantly improve the structure and maintainability of your code. This project serves as a reference for developers seeking to understand and apply design patterns in their own projects.
The following design patterns are implemented in this sample code:
- Factory Method Pattern: Defines an interface for creating an object but leaves the choice of its type to the subclasses, creating instances of several derived classes.
- .NET SDK installed
- Visual Studio or your preferred C# development environment
-
Clone this repository:
git clone https://github.com/liaghatmand/DesignPatterns.git
If you find this project helpful or interesting, please consider giving it a star on GitHub. It's a simple gesture that helps boost the project's visibility.
We welcome contributions! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and submit a pull request.
This project is licensed under the MIT License.
The code in this repository is based on the website refactoring guru