public static void Invoke() { Visitor v = new ConcreteVisitorA(); Part a = new PartA(); Part b = new PartB(); a.operation(v); }
public void visit(PartB b) { Console.WriteLine("ConcreteVisitorA visit PartB"); }