项目作者: adimation

项目描述 :
SOLID Design Principles
高级语言: C#
项目地址: git://github.com/adimation/soliddesign.git
创建时间: 2020-04-09T13:59:23Z
项目社区:https://github.com/adimation/soliddesign

开源协议:

下载


S.O.L.I.D Design Principles

SOLID is an ancronym which stands for:-

S - Single Responsibility Principle

O - Open/Closed Principle

L - Liskov Substitution Principle

I - Interface Segregation Principle

D - Dependency Inversion Principle

Single Responsibility Principle

A class should have one and only one reason to change, meaning that a class should have only one job.

Open/Closed Principle

A class should be open to addition/extension but closed for modification.

Liskov Substitution Principle

If a class B that inherits from class A. Then anywhere in the application where class A is used should be able to substitute for class B and application should continue to work.

Interface Segregation Principle

Many smaller client specific interfaces are better than larger ones.

Dependency Inversion Principle

Thourgh out the application a class should only be dependent on interface and not on concrete class.