Dependency Injection/IoC MSDN Articles (links)

It’s common outside of the .NET world of programming (ie. Java) to hear of using inversion of control containers.  Much of this is spurred on by Martin Fowler and his ‘Patterns of Enterprise Application Architecture’ book that provide ways to right good software.  In this book he covers Inversion of Control containers and Dependency Injection pattern.

The use of these containers following the DI pattern, which in my opinion has helped me write code that follows the DRY (‘do not repeat’) and the SRP  (‘single responsibility principle’) .  Both critical to writing loosely coupled and cohesive software.  I find with DI I tend to allow create software that is based on a service and component model with the emphasis on design to interfaces.

That all being said, in the .NET world it can sometimes be hard to find these examples.  Your certainly not going to find them in a C# book or introduction to  It took me years of programming myself before I had even heard of these concepts!

So, I have found two MSDN articles that cover Inversion of control containers.  One that uses Castle’s Windsor and the other using Spring.NET (those in the java world are familiar with Spring).

Building Distributed Applications: Inversion of Control and Dependency Injection: Working with Windsor Container

Design Patterns: Dependency Injection (Spring.NET)



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s