Visitor Design Pattern (C#)
Вставка
- Опубліковано 23 тра 2021
- The visitor design pattern explained with examples in code. Add more operation to a collection of elements, without changing the elements.
Patreon 🤝 / raw_coding
Courses 📚 learning.raw-coding.dev
Shop 🛒 shop.raw-coding.dev
Discord 💬 / discord
Twitter 📣 / anton_t0shik
Twitch 🎥 / raw_coding
Playlist: • c# design patterns
Source: github.com/raw-coding-youtube...
#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)"
Thank you for pointing out!
Very well explained - It's one of those patterns you're almost forced to know, at least if you work with Expressions occasionally
Cheers)
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.
Haha, noted ))
Brilliant explaination, BRO!
Glad you liked it!
thanks
I see this pattern creates more overhead you do not need, up to some point at least, right :))
100% don’t try to implement this pattern for lolz
👍🏽
Thank you
Nice background :)
Thank you 🙏
thanks
thank you for watching