예제 #1
0
        public static void Invoke()
        {
            Visitor v = new ConcreteVisitorA();
            Part    a = new PartA();
            Part    b = new PartB();

            a.operation(v);
        }
예제 #2
0
 public void visit(PartB b)
 {
     Console.WriteLine("ConcreteVisitorA visit PartB");
 }