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

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