filmov
tv
Dependency Injection for Absolute Beginners with C# and .NET
Показать описание
By flying in a couple of C# code snippets we learn how to turn a hard reference into a dependency that is injection. But why stop there? Let's decouple our code more by adding interfaces in the mix.
Last but not least, you will see what constructor injection is and what a DI container is. Hungry for more? Let me know in the comments what you'd like to see!
💝 Join this channel to get access to perks:
🔗 Links
⏱ Timestamps
0:00 Intro
0:28 Core of Dependency Injection
1:42 Dependency Injection with Concrete Implementation
2:38 Different Ways of Injection: Constructor Injection, Method Injection and Property Injection
4:08 Why Dependency Injection?
5:10 Dependency Injection with Interfaces: Loosely Coupled Code
7:25 3 Reasons to Use Interfaces with Dependency Injection
9:55 Dependency Injection Containers
11:53 There are Frameworks That Already Do This! Why You Want to Use That
12:53 Advantages & Disadvantages
15:48 Outro
🙋♂️ Also find my...
Комментарии