Click here to Skip to main content
15,910,277 members
Articles / Programming Languages / C#

Optional DependencyInjection in .NET

Rate me:
Please Sign up or sign in to vote.
4.29/5 (8 votes)
11 Jun 2023CPOL 16.6K   8  
How to optionally inject a dependency using Microsoft DependencyInjection container
This tip provides a solution for injecting optional dependencies in C# using the Microsoft Dependency Injection container.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions