No video

Simplest Strategy Design Pattern in C#

  Рет қаралды 10,726

Code Radiance

Code Radiance

Күн бұрын

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:
www.youtube.co...
----------My Social Links:
🔴 My Channel: / codefirst
🔴 View Playlists: / codefirst
🔴 My Github: github.com/Nitij
#StrategyDesignPattern

Пікірлер: 7
@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 4 жыл бұрын
@@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
@hosseinhosseini717
@hosseinhosseini717 2 жыл бұрын
thanks
C# ICloneable and Copy Constructor Step by Step
13:13
Code Radiance
Рет қаралды 4,4 М.
Simplest Open-Closed Principle with Code Example in C#
15:43
Code Radiance
Рет қаралды 4,5 М.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 56 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 37 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 12 МЛН
C# Observer Pattern Example
14:10
Code Radiance
Рет қаралды 31 М.
5 Design Patterns Every Engineer Should Know
11:51
Traversy Media
Рет қаралды 937 М.
Design Patterns: Strategy
13:59
Microsoft Visual Studio
Рет қаралды 38 М.
Factory Method Pattern - Design Patterns (ep 4)
27:21
Christopher Okhravi
Рет қаралды 543 М.
C# Chain of Responsibility Design Pattern | Code Examples
19:42
Code Radiance
Рет қаралды 11 М.
Simplest Decorator Design Pattern in C#
10:55
Code Radiance
Рет қаралды 25 М.
The Singleton Design Pattern - Part of the Gang of Four
28:41
IAmTimCorey
Рет қаралды 75 М.
Change Behaviors with the Strategy Pattern - Unity and C#
8:07
One Wheel Studio
Рет қаралды 39 М.
Factory Design Pattern - Why and How with Code!!
15:35
Keerti Purswani
Рет қаралды 83 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 157 М.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 56 МЛН