Click here to Skip to main content
15,881,967 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi,
Can anyone explain me Dependency Injection in .NET and ASP.NET MVC ?
I had gone through many articles but i didnt understood anything.
So please explain them clearly with examples.
Posted
Updated 11-Jun-14 8:45am
v2
Comments
This is quick question answer, so explaining everything here will be difficult. You need to point out the exact thing in a article or something, which you did not understand. There are many useful and awesome articles on this topic. You can get if you search on Google.

I remember as a beginner, I understood the concept of Dependency Injection from "PROFESSIONAL ASP.NET MVC 4" book - Dependency Injection (Chapter 12).
I think, It will help you as you are familiar with C# and MVC already.

After studying let us know at which point you are not able to understand. Thanks
 
Share this answer
 
v2
I had the same problem with this concept.
Although there are many articles describing it, they aren't easy to understand it. At the end, I found the following book which is free very easy to understand

http://unity.codeplex.com/documentation[^]

there are some samples available as well and you can understand how actually it works.
http://unity.codeplex.com/downloads/get/683531[^]

I hope it will help you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900