Пример #1
0
 public AppStructure(ShapeVisitor shapeVisitor)
 {
     ShapeVisitor = shapeVisitor;
 }
Пример #2
0
 public override void Accept(ShapeVisitor shapeVisitor)
 {
     shapeVisitor.Visit(this);
 }
Пример #3
0
 /// <summary>
 /// 外界注入具体访问者
 /// </summary>
 /// <param name="shapeVisitor"></param>
 public abstract void Accept(ShapeVisitor shapeVisitor);