Visitor Design Pattern (C#)

preview_player
Показать описание
The visitor design pattern explained with examples in code. Add more operation to a collection of elements, without changing the elements.

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

Thanks for the video.
A small note, however, is that the "Fruit", the "Place" and the "IRepository" should have their method called as *Accept(Visitor v)* and not as "Visit(Visitor v)"

MrJonnis
Автор

Very well explained - It's one of those patterns you're almost forced to know, at least if you work with Expressions occasionally

allinvanguard
Автор

Awesome explanation. Thanks Anton.
I would prefer more positive visitors like, story telling neighbor to weed smoking dude and pipe fixing plumber to a sock stealing robber ))
Cheers.

virtualdars
Автор

I see this pattern creates more overhead you do not need, up to some point at least, right :))

TheNorthRemember