© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
16 replies
The Fog from Human Resources

What is dependency injection and when should I realistically use it

Recently I've got some critics from people saying I should not create a Helper / Utils class with a bunch of public static methods and that I should rather use DI practices for it
For me my approach makes sense since my Utils are only supposed to exist once in the whole program so I can access it from everywhere
So what exactly is bad about my approach?
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

When to use Dependency injection?
C#CC# / help
16mo ago
xUnit and Dependency Injection
C#CC# / help
15mo ago
❔ IEnumerable and dependency injection
C#CC# / help
4y ago
Dependency injection
C#CC# / help
6mo ago