示例#1
0
 public override void VisitConcreteElementB(ConcreteElementB concreteElementB)
 {
     Console.WriteLine($"{concreteElementB.GetType().Name}被{this.GetType().Name}访问");
 }
示例#2
0
 public override void Visit(ConcreteElementB elementB)
 {
     //元素B的代码
 }
示例#3
0
 public abstract void VisitConcreteElementB(ConcreteElementB concreteElementB);
示例#4
0
 public abstract void Visit(ConcreteElementB elementB);