Adding a third-party Dependency Injection Container
Dependency Injection is one of the solutions when it comes to resolving dependencies in runtime. Let's look at the Wikipedia description:
Note
Dependency Injection is a software design pattern that implements Inversion of Control (IoC) for resolving dependencies.
Working with a Dependency Injection Container, you will see that it isn't only an IoC container but a set of software design patterns and principles that solves the problem of tight coupling.
Loosely coupled code enables us to write extensible code; testing becomes much easier with mocking the Subject Under Testing component dependencies; dynamic construction in runtime with injected dependencies; and of course maintainability, code that ...
Get Xamarin: Cross-Platform Mobile Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.