foontzoot / Dotnet-CSharp-SOLID-demo

This repository provides some examples of how to use SOLID principles in .NET and C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET C# SOLID demo

Knowing a programming language doesn’t make you a software developer. Absolutely every software developer who works with any object oriented language need to be familiar with SOLID principles. For those who are new to programming and doesn’t yet know what those principles are, SOLID is an acronym, which stands for the following:

  • Single responsibility principle
  • Open-closed principle
  • Liskov substitution principle
  • Interface segregation principle
  • Dependency inversion principle

This repository contains five solution, each demonstrating one of the principles in action. All the solutions contain exactly the same application that is gradually being refactored to adhere to each of the SOLID principles.

For each principle, there is a link to an article that provides more in-depth explanation of what that principle is and why you would need to use it.

Why you must use single responsibility principle

Why open-closed principle is important

Liskov substitution principle in C#

Importance of interface segregation principle in C#

Why you need dependency inversion in C#

About

This repository provides some examples of how to use SOLID principles in .NET and C#.

License:GNU General Public License v3.0


Languages

Language:C# 100.0%