Exemple #1
0
 public override void VisitConcreteElementA(ConcreteElementA concreteElementA)
 {
     Console.WriteLine("{0} visited by {1}", concreteElementA.GetType().Name, this.GetType().Name);
 }
Exemple #2
0
 abstract class Visitor { public abstract void VisitConcreteElementA(ConcreteElementA concreteElementA); public abstract void VisitConcreteElementB(ConcreteElementB concreteElementB); }