Platform-Specific Code in .NET MAUI Using Dependency Injection
There are different ways to write platform-specific code in .NET MAUI. One of those ways is by leveraging dependency injection. In this video we will learn how to do that and see how it compares to doing it using the multi-target approach we’ve seen in a previous video.
What you will learn
- Intro: Platform Code in .NET MAUI with Dependency Injection
- .NET MAUI Multi-Targeting Recap
- Implement Shared Code Interface
- Implement Android Specific Code
Good to know
- The demo focuses on practical usage, so validate package/version details against your current MAUI target before shipping.