What is Dependency Injection in dotNet? DotNet C# Interview Question 60 of 100:

Опубликовано: 28 Сентябрь 2024
на канале: Tech Interview Questions
1,704
36

DotNet Interview Question 60 of 100:
What is Dependency Injection in dotNet?

Answer: Dependency Injection (DI) is a design pattern that enables loose coupling of code by providing high-level modules with their dependencies, instead of having them create dependencies themselves. DI is used for achieving Inversion of Control (IoC) between classes and their dependencies.