Тёмный

Simplest Strategy Design Pattern in C# 

Code Radiance
Подписаться 14 тыс.
Просмотров 11 тыс.
50% 1

Watch and learn a very simple code example about how to implement the Strategy Design Pattern in the C# programming language.
►►►Like this Video? Please be sure to SUBSCRIBE for more:
ru-vid.com?s...
----------My Social Links:
🔴 My Channel: / codefirst
🔴 View Playlists: / codefirst
🔴 My Github: github.com/Nitij
#StrategyDesignPattern

Наука

Опубликовано:

 

13 апр 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@hosseinhosseini717
@hosseinhosseini717 2 года назад
thanks
@farisgear
@farisgear 4 года назад
Correct me if I'm wrong.. When u start using switch case then its more like factory.. Strategy should remove that switch case..
@CodeRadiance
@CodeRadiance 4 года назад
Yeah I understand why you think so. Switch case is just to select a suitable strategy and not to return any specific object implementation like we do in a factory.
@starman9000
@starman9000 3 года назад
@@CodeRadianceYou could use reflection to pick the appropriate strategy at run time.
@brunocastro754
@brunocastro754 3 года назад
@@starman9000I wouldn't use reflection because it's too costly for that, not to mention the increased complexity and worse maintainability.
@sunnypatel1045
@sunnypatel1045 3 года назад
@@brunocastro754 Agreed mate. I would have a class that will enumerate all the strategy and then invoke it in the code via DI. Hence not breaking any OCP.
@nayj3l
@nayj3l 3 года назад
lol! it says simplest strategy but u just used a very complex and overwhelming example
Далее
C# ICloneable and Copy Constructor Step by Step
13:13
Просмотров 4,4 тыс.
Factory Pattern in C#: Creating Objects with Ease
12:54
World Record Tunnel Glide 🪂
00:19
Просмотров 21 млн
شربت كل الماء؟ 🤣
00:31
Просмотров 12 млн
Design Patterns: Strategy
13:59
Просмотров 37 тыс.
Cleaner C# code with "smart" using statements
16:30
Просмотров 63 тыс.
Clean Code using the Strategy Pattern
12:34
Просмотров 12 тыс.
Simplest Decorator Design Pattern in C#
10:55
Просмотров 25 тыс.
How to Implement the Strategy Pattern in C#:
8:51
Просмотров 4,2 тыс.
C# Observer Pattern Example
14:10
Просмотров 31 тыс.
Aura 879dsp новинка и хит
0:48
Просмотров 128 тыс.