public override void VisitConcreteElementA(ConcreteElementA concreteElementA) { Console.WriteLine("{0}被{1}访问", concreteElementA.GetType().Name, this.GetType().Name); }
public override void VisitConcreteElementA( ConcreteElementA concreteElementA) { Console.WriteLine("{0} visited by {1}", concreteElementA.GetType().Name, this.GetType().Name); }
public void Visit(ConcreteElementA element) { Console.WriteLine("Visitor 2 is visiting {0}", element.GetType().Name); }
public override void VisitConcreteElementA(ConcreteElementA concreteElementA) { Console.WriteLine("ConcreteVisitor1: {0} visitado por: {1}", concreteElementA.GetType().Name, this.GetType().Name); }
public override void VisitConcreteElementA(ConcreteElementA concreteElementA) { Console.WriteLine($"{concreteElementA.GetType().Name}被{this.GetType().Name}存取"); }
public override void VisitConcreteElementA(ConcreteElementA concreteElementA) { Console.WriteLine($"{concreteElementA.GetType().Name} Visitado por {GetType().Name}"); }
public void Visit(ConcreteElementA element) { Console.WriteLine("Visitor 2 is visiting {0}", element.GetType().Name); }
public override void VisitConcreteElementA(ConcreteElementA concreteElement) { Console.WriteLine("{0} 被 {1} 访问", concreteElement.GetType().Name, this.GetType().Name); }
public override void visitConcreteElementA(ConcreteElementA cea) { Console.WriteLine("the {0} is visiting {1}", this.GetType().Name, cea.GetType().Name); }
public override void VisitConcreteElementA(ConcreteElementA concreteElementA) => Console.WriteLine($"{concreteElementA.GetType().Name} visited by {GetType().Name}");