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

КОМЕНТАРІ • 20

  • @MrJonnis13
    @MrJonnis13 2 роки тому +2

    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)"

    • @RawCoding
      @RawCoding  2 роки тому +1

      Thank you for pointing out!

  • @allinvanguard
    @allinvanguard 3 роки тому +3

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

  • @virtualdars
    @virtualdars 2 роки тому +2

    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.

  • @igorshlyakov9321
    @igorshlyakov9321 Рік тому +1

    Brilliant explaination, BRO!

  • @ivandrofly
    @ivandrofly Рік тому

    thanks

  • @TheNorthRemember
    @TheNorthRemember 2 роки тому +2

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

    • @RawCoding
      @RawCoding  2 роки тому +1

      100% don’t try to implement this pattern for lolz

  • @clearlyunwell
    @clearlyunwell 3 роки тому +1

    👍🏽

  • @pedramkavian
    @pedramkavian 3 роки тому +2

    Nice background :)

  • @S3Kglitches
    @S3Kglitches 2 роки тому +1

    thanks

    • @RawCoding
      @RawCoding  2 роки тому

      thank you for watching