How tanvirarjel/solidprinciples works
This repository is a set of five small C# teaching examples for the SOLID principles, not a single application workflow. A reader uses the root README to find each principle’s example project; each project has bad/good design code where provided, plus a console entry point. The graph preserves the documented principle branches and the indexed example modules. Most entry points only print a greeting, so no calls from them to the examples are shown.
Main entry points: README.md Principles Guide · BadDesign.cs Conditional Reports · IUserService.cs User Interfaces · Employee.cs Employee Model
Components 17
Single Responsibility
- Console Entry
SingleResponsibilityPrinciple/Program.cs - User Interfaces
SingleResponsibilityPrinciple/IUserService.cs
Open Closed
- Console Entry
OpenClosedPrinciple/Program.cs - Conditional Reports
OpenClosedPrinciple/BadDesign.cs - Employee Model
OpenClosedPrinciple/Employee.cs - Extensible Design
OpenClosedPrinciple/GoodDesign.cs
Liskov Substitution
- Console Entry
LiskovSubstitutionPrinciple/Program.cs - Invalid Substitution
LiskovSubstitutionPrinciple/BadDesign.cs - Substitutable Design
LiskovSubstitutionPrinciple/GoodDesign.cs
Interface Segregation
- Console Entry
InterfaceSegregationPrinciple/Program.cs - Fat Task Interface
InterfaceSegregationPrinciple/BadDesign.cs - Segregated Interfaces
InterfaceSegregationPrinciple/GoodDesign.cs
Dependency Inversion
- Console Entry
DependencyInversionPrinciple/Program.cs - Direct Dependency Example
DependencyInversionPrinciple/BadDesign.cs - Abstracted Email Design
DependencyInversionPrinciple/GoodDesign.cs
Other components
- Reader
- Principles Guide
README.md
Connections 7
- Reader → Principles Guide: reads
README.md - Principles Guide → User Interfaces: links to
README.md - Principles Guide → Conditional Reports: links to
README.md - Principles Guide → Invalid Substitution: links to
README.md - Principles Guide → Fat Task Interface: links to
README.md - Principles Guide → Abstracted Email Design: links to
README.md - Conditional Reports → Employee Model: uses model
OpenClosedPrinciple/BadDesign.cs