public override void Accept(VisitorBase visitorBase) { visitorBase.Visit(this); foreach (var sub in Subordints) { sub.Accept(visitorBase); } }
public override void Accept(VisitorBase visitor) { visitor.Visit(this); foreach (var employee in Subordinates) { employee.Accept(visitor); } }
public override void Accept(VisitorBase visitor) { //this : kendisini geçiyoruz visitor.Visit(this); //Bütün Subordinate leri geziyoruz foreach (var employee in Subordinates) { employee.Accept(visitor); } }
public abstract void Accept(VisitorBase visitor);
public void Accept(VisitorBase visitor) { Employee.Accept(visitor); }
public override void Accept(VisitorBase visitor) { visitor.Visit(this); }
public void GetAccept(VisitorBase visitorBase) { Employee.Accept(visitorBase); }