Dependency Injection Explained

Опубликовано: 01 Январь 1970
на канале: Brian Lagunas
12,162
343

In today's stream, I talk about the basics of dependency injection. Dependency injection is a very common software design pattern that implements inversion of control for resolving dependencies.

What is a dependency? A dependency is an object that another object depends on.

What is injection? Injection is the passing of a dependency to a dependent object that would use it.

Essentially, dependency injection is a technique of injecting dependencies into objects that require them via either a constructor argument, or a property setter.

The intent behind dependency injection is to achieve separation of concerns of construction and use of objects. This can increase readability, extensibility, testing, and code reuse.

Be sure to watch my new Pluralsight course "Introduction to Prism for WPF":
📺 http://bit.ly/PrismForWpf

Sponsor Me on GitHub:
🙏🏼 http://bit.ly/SponsorBrianOnGitHub

Get 2 Free Stocks on WeBull (Valued up to $1600 when you deposit $100)
💰 http://bit.ly/BrianWeBull

Follow Me:
🐦 Twitter: http://bit.ly/BrianLagunasOnTwitter
📖 Blog: http://bit.ly/BrianLagunasBlog


На этой странице сайта вы можете посмотреть видео онлайн Dependency Injection Explained длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Brian Lagunas 01 Январь 1970, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 12,162 раз и оно понравилось 343 зрителям. Приятного просмотра!