예제 #1
0
 public void RunVisitor(IShapeVisitor visitor)
 {
     foreach (IShape shape in m_Shapes)
     {
         shape.RunVisitor(visitor);
     }
 }
예제 #2
0
 public abstract void RunVisitor(IShapeVisitor visitor);
예제 #3
0
 public override void RunVisitor(IShapeVisitor visitor)
 {
     visitor.VisitCube(this);
 }
예제 #4
0
 public override void RunVisitor(IShapeVisitor visitor)
 {
     visitor.VisitCylinder(this);
 }