© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
13 replies
Faker

✅ meaning on dependency injection in C#

Hello guys, I was just reading a bit, I came across those terms "dependency injection". Can someone explain what this mean please. I read a bit about it, what I read is that dependency injection is used to prevent "tight coupling" (don't know what this is). Is dependency injection same as when we are importing libraries, like .NET libraries?

Would really appreciate if someone can give simple code example of with and without dependency injection of what happen
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dependency injection
C#CC# / help
6mo ago
✅ Dependency injection
C#CC# / help
2y ago
❔ Dependency Injection
C#CC# / help
3y ago
Dependency injection in WPF
C#CC# / help
3y ago