For the past week or so in my spare time I've been trying to get my head around DI and IoC. Last night the light flickered on and stayed on thanks to this series of articles by Simone Busoli on dotnetslackers:
http://dotnetslackers.com/articles/designpatterns/InversionOfControlAndDependencyInjectionWithCastleWindsorContainerPart1.aspxhttp://dotnetslackers.com/articles/designpatterns/InversionOfControlAndDependencyInjectionWithCastleWindsorContainerPart2.aspxhttp://dotnetslackers.com/articles/designpatterns/InversionOfControlAndDependencyInjectionWithCastleWindsorContainerPart3.aspxhttp://dotnetslackers.com/articles/designpatterns/InversionOfControlAndDependencyInjectionWithCastleWindsorContainerPart4.aspx
Although the articles focus on the Castle Windsor container, the principles apply to containers such as Microsoft's own Unity container.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.