Understanding Dependency Injection with C#
An easy guide to learn fundamentals of dependency injection
3 min readDec 3, 2019
Dependency Injection or DI is a design pattern that allows to delegate the creation of dependent objects to another entity outside the main class. DI allows programs to have loosely coupled classes. Let’s understand this with simple examples.