public void Accept(IShapeVisitor visitor) { foreach (Shape el in this) { visitor.VisitShape(el); } }
public override void Accept(IShapeVisitor visitor) { visitor.VisitShape(this); }