SOLID Design Principles - DI (Dependency Inversion Principle) in .NET 7.0 , .NET Core C# 11

Опубликовано: 21 Октябрь 2024
на канале: Learn@EdwinDeloso
35
1

DI or Depenendy Inversion Principle guys is the 5th SOLID Design principle that says High Level class should not depend on low level class instead both should depend upon abstraction.

This principle suggests that there should be loose coupling betwen High Level and Love Level classes and to achive loose coupling components should depend on abstraction. Simple terms classes should depend on interfaces/Abstract classes and not on concrete types.