BEST PRACTICES

When Not To Use DI, IoC, and IoC Containers in .NET C#

Know when DIs aren’t the right solution, and the better design to use instead in .NET C#

Ahmed Tarek
Published in
9 min readNov 10, 2021

--

Learn the best practice on when to use Dependency Injection (DI), Inversion of Control (IoC) and IoC Containers. DotNet (.NET) CSharp (C#). Best Practice Code Coding Programming Software Development Architecture Engineering
Photo by Olav Ahrens Røtne on Unsplash

Throughout my years of working as a Software Engineer, I came across many occasions where I couldn’t understand the code I am looking at.

--

--

Software Engineer 👨‍💻 | .NET dotnet C# csharp c-sharp | Website: https://www.developmentsimplyput.com | LinkedIn: @atarekhasan