示例#1
0
 public override void Accept(VisitorBase visitorBase)
 {
     visitorBase.Visit(this);
     foreach (var sub in Subordints)
     {
         sub.Accept(visitorBase);
     }
 }
示例#2
0
        public override void Accept(VisitorBase visitor)
        {
            visitor.Visit(this);

            foreach (var employee in Subordinates)
            {
                employee.Accept(visitor);
            }
        }
示例#3
0
 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);
     }
 }
示例#4
0
 public abstract void Accept(VisitorBase visitor);
示例#5
0
 public void Accept(VisitorBase visitor)
 {
     Employee.Accept(visitor);
 }
示例#6
0
 public override void Accept(VisitorBase visitor)
 {
     visitor.Visit(this);
 }
示例#7
0
 public void GetAccept(VisitorBase visitorBase)
 {
     Employee.Accept(visitorBase);
 }