Visitor Design Pattern (An Introduction for .NET Developers [.NET 6 and C# 10])

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 6

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

    Well explained, I liked that you started with an example without the visitor design pattern and then changed it accordingly. Thank you!

  • @todortodorov2632
    @todortodorov2632 Рік тому +3

    The example is not very appropriate for visitor. Its main purpose is the double dispatch. But we do not see it here.

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

    Does this mean that the interface passed into the visitor would then still need to have appropriate methods exposed that would do the actual configuring?

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

      @Samorox, yes that will be the case, for example in the case of an email sender, it will provide a specific object which will be responsible for sending email, and so on.

  • @Indian-rq1vn
    @Indian-rq1vn Рік тому

    Does not sound correct example as we are changin all files

  • @cypto62
    @cypto62 9 місяців тому

    4:59