What is IOC Container

IOC Container is a mechanism to achieve dependency injection to make our classes loosely coupled.

We can achieve inversion of control using 2 ways-
1. Dependency injection pattern
2. Service Locator pattern

There are many IOC Container available in .Net,some of mostly used are as given below…

  1. Castle Windsor
  2. Ninject
  3. Autofac
  4. Unity

Leave a comment