O'Reilly logo

Refactoring with Microsoft Visual Studio 2010 by Peter Ritchie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with IoC containers

There are a great number of IoC containers for .NET: StructureMap, Autofac, Castle Windsor, Spring.NET, Ninject, Microsoft Unity, and so on. IoC containers are third-party libraries that can be used within your code to better support Dependency Injection. Some have more features than others, and some differ in their API. Comparing and contrasting these containers and detailing their usage could fill its own text; so, we won't get into that level of detail. But, we'll give a short example of using an IoC container with Dependency Injection and loosely-coupled design.

In sticking with the general theme of this book, we'll stick with something from the Microsoft stack: Microsoft Unity. This by no means is to suggest it's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required