Accept

public static void Accept<T, V>(this T visitable,
      V visitor, VisitorContext context)
      where V : IVisitor<T>
    {
        visitor.Visit(visitable, context);
    }
Example:
object o;
o.Accept(visitor,context);

Description

Provides a generic visitor Method Extension for more information, please have a look at my blog post : http://www.dotnetguru2.org/nicolaspenin/index.php?title=generic_visitor_implementation_thanks_to_0&more=1&c=1&tb=1&pb=1

Details

Double click on the code to select all.

 

;