Dependency Injection
For a basic example in C# using Castle Windsor, see here.
This page is dedicated to alternatives to Dependency Injection. As this is a relatively new page, please feel free to suggest alternatives. Thanks.
Dependency Injection Alternatives
Dependency Injection alternatives based on verified products, community votes, reviews and similar products.
-
/service-locator-alternatives
This pattern uses a central registry known as the "service locator", which on request returns the information necessary to perform a certain task.
Suggest an alternative
If you think we've missed something, please suggest an alternative to Dependency Injection.