What is dependency injection in C#?

Junior C#

Answer

Dependency Injection (DI) provides required objects from outside rather than creating them internally.

It improves modularity, testability, and maintainability.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice