Inversion of control (IoC), Dependency injection (DI)

Dependency injection 2

Dependency injection (DI)


“Dependency injection (DI) in object-oriented computer programming is a technique that indicates to a part of a program which other parts it can use, i.e. to supply an external dependency, or reference, to a software component. More simply, dependency injection is the passing or setting of dependencies into a software component. In technical terms, it is a design pattern that separates behavior from dependency resolution, thus decoupling highly dependent components. Instead of components having to request dependencies, they are given, or injected, into the component.”

Inversion of Control (IoC) 2

Inversion of control (IoC)

“In software engineering, Inversion of control (IoC) is an abstract principle describing an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to procedural programming.
In traditional programming the flow of the business logic is controlled by a central piece of code, which calls reusable subroutines that perform specific functions. Using Inversion of Control this “central control” design principle is abandoned. The caller’s code deals with the program’s execution order, but the business knowledge is encapsulated by the called subroutines.
In practice, Inversion of Control is a style of software construction where reusable generic code controls the execution of problem-specific code. It carries the strong connotation that the reusable code and the problem-specific code are developed independently, which often results in a single integrated application.”


IoC libraries compared

      comparing other IoC’s: Ninject, StructurMap, Unity,,Windsor, Autofac

 List of .NET Dependency Injection Containers (IOC):

Inversion of Control (IoC)

Comparison Matrix:

IoC Performance comparison:

The MVVM frameworks Silver-light application:
Another Comparison:

Dependency injection

In .Net:



10 videos under: (Its with Prism)–silverlight-part-1-taking-sketched-code-towards-unity


Prism (Composite Application Guidance for WPF and Silverlight)
Video: (Its with Unity)
10 videos under:–silverlight-part-1-taking-sketched-code-towards-unity

MEF – Managed Extensibility Framework
look under section Casts.
and also:
and aslo:


Video: (Its with Unity, Prism)
10 videos under:–silverlight-part-1-taking-sketched-code-towards-unity


About Reader Man حسين ناجي الصفافير

حسين ناجي الصفافير Hussain Naji Al-Safafeer Info:
This entry was posted in Technical and tagged , , , , , , , , , , , , , . Bookmark the permalink.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s