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