Example #1
0
 public override void Accept(VisitorBase visitor)
 {
     visitor.Visit(this);
     foreach (var employee in Subordinates)
     {
         employee.Accept(visitor);
     }
 }
Example #2
0
 public override void Accept(VisitorBase visitor)
 {
     visitor.Visit(this);
 }
Example #3
0
 public abstract void Accept(VisitorBase visitor);
Example #4
0
 public void Accept(VisitorBase visitor)
 {
     Employee.Accept(visitor);
 }