Command Design Pattern (C#)

preview_player
Показать описание
The command design pattern explained with examples in code.

#csharp #command #designpatterns
Рекомендации по теме
Комментарии
Автор

Just found your channel and your tutorials are great!
Love how you lay everything out clear and concise,
but yet you spend the time to explain the concepts
very well with examples.

mybusinessnotyours
Автор

Awesome explanation. Very easy to understand since I was struggling to understand Design patterns from books.

niranjannt
Автор

@raw coding - in your example you added the command object in the button object and that makes sense. However, I saw one tutorial video where the guy did vice versa, i.e. added the device to the command. Do you think it is a good design in any scenario? Sample code below:

public class TurnOnCommand : ICommand
{
Device device;

public TurnOnCommand(Device device)
{
this.device = device;
}

// execute method
....
}

khadimali
Автор

Man, I love this kind of content. I watched this video a while ago and had been itching to implement this pattern. Thanks for making this kind of content and of such a high quality.

danielhadad
Автор

It's quite familiar to Xamarin developers, who use MVVM. 😀

kristofszabo
Автор

What C# book do you recommend? I am beginner I know basic programming some OOP. I would like to learn ASP NET core and Azure.

JanKowalski-rymv
Автор

Design patterns have become pretty boring(

oleksand.d