Пример #1
0
 //
 public override void Accept(VisitorBase visitor)
 {
     visitor.Visit(this);
     //4
     foreach (var employee in SubOrdinates)
     {
         employee.Accept(visitor);
     }
     //
 }
Пример #2
0
 public override void Accept(VisitorBase visitor)
 {
     visitor.Visit(this);
 }