Пример #1
0
 public void RunVisitor(EquipmentVisitor visitor)
 {
     foreach (Equipment equipment in Equipments)
     {
         equipment.RunVisitor(visitor);
     }
 }
Пример #2
0
 public override void Accept(EquipmentVisitor visitor)
 {
     foreach (var part in parts)
     {
         part.Accept(visitor);
     }
     visitor.VisitChassis(this);
 }