Simplest Decorator Design Pattern in C#

preview_player
Показать описание
Watch and learn a very simple code example about how to implement the Decorator Design Pattern in the C# programming language.

►►►Like this Video? Please be sure to SUBSCRIBE for more:

----------My Social Links:

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

I looked at several explanations before watching this. Yours finally made it simple and easy to understand. Thank you.

jtjnash
Автор

Great video!!

It may help that we reuse the variable "pizza" and keep re-assigning it to each decorator instance. It makes it clearer that "one thing" is being transformed through decorations.

IPizza pizza = new Pizza();
pizza = new CheeseDecorator(pizza);
pizza = new TomatoDecorator(pizza);
pizza = new OnionDecorator(pizza);

....

hocahaenyi
Автор

It's very simple explanation, but also it's so useful, thanks for explanation!

deepdarkguzka
Автор

Amazing video, would love to see more, though I suggest that you add a UML diagram in the future.

IAmESG
Автор

Thanks for making this easier to understand!

AriLetsPlays
Автор

Finally Eminem explained it very well. Thanks alot.

cityrunner-xx
Автор

This video gave the clear picture. Referring many sites didnt help me. Thanks a lot... Could you also provide videos on designing any architecture

nandinik
Автор

Great Job. Thank you for this Charitable Endeavour.

charlesopuoro
Автор

the video was very good, it dealt with in a simple way, I missed UnitTest and how to do the injection depedency

could you include these steps in the next videos?

example using FluentAssertion.

Oluciaano
Автор

Can I also re use the variable "pizza" instead of creating new variables with differenet names and passing them? So that I can only have one instance of pizza being upgraded until It got passed through all decorators?

krinx
Автор

Great and very clean video, thank you!

alreadytakenindeed
Автор

thank you so much for this simple explanation.

ahmedm_seada
Автор

The simplicity is great for comprehension, but one question I still have is how to handle other methods not explicitly extended by the decorator.

williamedstrom
Автор

Man, you nailed it. If you can made me understand this, you're good at explanation! lol

nascimentoalexandre
Автор

That's pretty good. Thanks for the explanation.

Myrelaxedlife
Автор

Best explanation ! I've never had before Thanks so much

applicationtest
Автор

nice and clean code, clear explanation. thanks.

澳贼
Автор

Great video, I prefer the builder pattern

MrMattberry
Автор

This was an amazing example, Thank you so much man!!!!

vernonvandermerwe
Автор

What if I want to bundle that functionality into an Attribute so it's as simple as applying an Attribute to a Method and getting the functionality added?

Chiramisudo