C# IoC containers [closed]

Asked at 2017-01-08 22:08:30Z
  • 5 Subscribers
  • 114 Views

1 answers in total

0
Steven Posted at 2017-01-09 08:20:42Z

You make a false comparison. Abstractions are a prerequisite to apply Dependency Injection and to conform to the Dependency Inversion Principle. So if you are doing IoC or DI without the help of a container, you are basically practicing Pure DI. Pure DI is a valid practice, the when an application grows, the use of containers can become very convenient, because they enable Convention over Configuration to wire object graphs. If you start using a DI container, you still need to use Abstractions.

To learn more on when and why you should use a DI container, read this and this.

Answer this questsion