예제 #1
0
 public void Accept(Visitor visitor)
 {
     foreach (var element in _elements)
     {
         element.Accept(visitor);
     }
 }
예제 #2
0
 public override void Accept(Visitor visitor)
 {
     visitor.Visit(this);
 }
예제 #3
0
 public abstract void Accept(Visitor visitor);