开发者

dynamic-dispatch

0
  • Reflection or Dynamic Dispatching

    I\'m writing a abstract file parser (C#) which is extended by two concrete parsers. Both need to perform several checks. Currently there is a validate method in the abstract parser, which uses reflect[详细]

    2022-12-13 07:34 分类:问答
  • Dynamic method dispatch based on value of variable

    Long switch statments are often frowned upon. The solution is to use polymorphism. However what if the thing I\'m switching on is not a type code? What I would like to do is replace the switch stateme[详细]

    2022-12-12 18:32 分类:问答