O'Reilly logo

Refactoring with Microsoft Visual Studio 2010 by Peter Ritchie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dependency Injection

Dependency Injection is a more specific type of Inversion of Control. Dependency Injection inverts traditional procedural control of dependencies from direct creational dependency (through invocation of constructors) to an indirect dependency. Instead of dependencies being created directly (call us), they are injected into the class that depends on them from an external source (call you). When this is coupled with Interface-based Design we can obtain the loosest coupling. This level of modularity allows both the containing class and its dependencies to evolve independently.

By shifting object creation in this way, the how and what that are instantiated are completely independent of a particular class and can vary completely ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required