예제 #1
0
 public void Accept(ICityVisitor cityVisitor)
 {
     foreach (ILocation location in _locations)
     {
         location.Accept(cityVisitor);
     }
 }
예제 #2
0
 public void Accept(ICityVisitor visitor)
 {
     visitor.VisitTheatre(this);
 }
예제 #3
0
 public void Accept(ICityVisitor visitor)
 {
     visitor.VisitRestaurant(this);
 }
예제 #4
0
 public void Accept(ICityVisitor visitor)
 {
     visitor.VisitMonument(this);
 }