https://github.com/syncfusionexamples/solid-principle-in-csharp
This repository provides a comprehensive guide and practical examples of implementing the SOLID principles in C#.
https://github.com/syncfusionexamples/solid-principle-in-csharp
Last synced: 9 months ago
JSON representation
This repository provides a comprehensive guide and practical examples of implementing the SOLID principles in C#.
- Host: GitHub
- URL: https://github.com/syncfusionexamples/solid-principle-in-csharp
- Owner: SyncfusionExamples
- Created: 2024-05-29T04:51:06.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-30T04:28:21.000Z (almost 2 years ago)
- Last Synced: 2025-05-27T01:40:36.437Z (10 months ago)
- Language: C#
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SOLID principle in C#
This repository provides a comprehensive guide and practical examples of implementing the SOLID principles in C#. SOLID is an acronym for five design principles intended to make software designs more understandable, flexible, and maintainable. The principles are:
1. **Single Responsibility Principle (SRP):** A class should have only one reason to change, meaning it should only have one job or responsibility.
2. **Open/Closed Principle (OCP):** Software entities should be open for extension but closed for modification.
3. **Liskov Substitution Principle (LSP):** Objects in a program should be replaceable with instances of their subtypes without altering the correctness of the program.
4. **Interface Segregation Principle (ISP):** Clients should not be forced to depend on interfaces they do not use.
5. **Dependency Inversion Principle (DIP):** High-level modules should not depend on low-level modules. Both should depend on abstractions.