What is Dependency Injection?
Dependency Injection is the way of implementing (Inversion of Control)IOC.
Note: For more on Inversion of Control (IOC) read
It will performed with the help of IOC containers like unity, castle WINDSOR etc.
- In Dependency Injection higher level module will contain reference of interface instead of concrete class. Example, Business class will contain reference to IExceptionLogger instead of direct FileLogger.
- IOC container from outside initializes this reference at runtime.
Click to read in more details about
Dependency Injection (DI) VS Inversion of Control (IOC)
For technical trainings on various topics like WCF (Windows Communication Foundation), MVC (Model View Controller), Business Intelligence, Design Patterns, WPF, TFS and Basic fundamentals feel free to contact
SukeshMarla@Gmail.com or visit
For more stuff like this, click
here. Subscribe to
article updates or follow at twitter
Click and see here for more
learning Dependency Injection (DI) in .NET