Different ways to achieve Dependency Injection
There are three different ways to achieve Dependency Injection, which are namely:
-Constructor Injection
-Method Injection
-Property Injection
There are three different ways to achieve Dependency Injection, which are namely:
-Constructor Injection
-Method Injection
-Property Injection
Dependency Injection in C# uses IoC principle. IoC stands for Inversion of Control, this is used to invert different kinds of controls like a class etc. This include control over the flow of an application, and control over object creation or dependent object creation and binding.