Inversion of Control / Dependency Injection with good explanation and examples in .net?

c#, dependency-injection, frameworks, inversion-of-control

Solution

Your best bet is too look at one of the IOC/DI website

Spring.net http://www.springframework.net/

Castle Windsor http://www.castleproject.org/container/index.html

Structure Map http://structuremap.sourceforge.net/Default.htm

Good articles on comparison of IOC

http://blog.ashmind.com/index.php/2008/08/19/comparing-net-di-ioc-frameworks-part-1/

http://www.hanselman.com/blog/ListOfNETDependencyInjectionContainersIOC.aspx

I hope that helps. I personally have used Spring.Net and Castle Windsor - the latter probably easier to understand and use.

Have a look at this question as well. Examples of IoC Containers

Problem

Hi I don't have much knowledge on IoC/DI frameworks in .net framework. Can anyone give me links that explans IoC/DI in detail with few example in C#? I want go through it and get more idea about these frameworks. So that I can get the knowledge, where and How can I use these frameworks are useful in implementing the project. nrk

Original source

Related problems