I think what you're looking for is a Visitor. http://en.wikipedia.org/wiki/Visitor_pattern
I have a few examples in C#: http://www.dotnetdevs.com/articles/ReflectionVisitor.aspx On 7/17/06, Kristofer Krebs <[EMAIL PROTECTED]> wrote:
Sometimes I have to do a lot of typechecking to determine what to do based on the type of an object that looks like this:
-- Brad Wilson http://www.agileprogrammer.com/dotnetguy/ "Constraints are liberating." - David Heinemeier Hansson (author of Ruby on Rails) =================================== This list is hosted by DevelopMentor� http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
