This repository demonstrates the implementation of SOLID principles in C#. SOLID is an acronym for the first five object-oriented design (OOD) principles suggested by Robert C. Martin. These principles make it easier to manage software complexity, particularly through software maintainability.
The repository contains separate console applications for each principle:
SRP_Without- Single Responsibility Principle without applying the principle.SRP_With- Single Responsibility Principle with the principle applied.OCP_Without- Open Closed Principle without applying the principle.OCP_With- Open Closed Principle with the principle applied.LSP_Without- Liskov Substitution Principle without applying the principle.LSP_With- Liskov Substitution Principle with the principle applied.ISP_Without- Interface Segregation Principle without applying the principle.ISP_With- Interface Segregation Principle with the principle applied.DIP_Without- Dependency Inversion Principle without applying the principle.DIP_With- Dependency Inversion Principle with the principle applied.
- .NET 6.0 or later
- A text editor or an Integrated Development Environment (IDE) like Visual Studio or Visual Studio Code.
Navigate to the folder of the application you want to run, then use the dotnet run command in your terminal.
cd SRP_With
dotnet runReplace SRP_With with the name of the application you wish to run.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
You can customize this README to match the details of your project. Be sure to replace any placeholder text with the correct links and information for your project.