public void Display(VisitAction visitor)
 {
     foreach (VisitPerson e in elements)
     {
         e.Accept(visitor);
     }
 }
示例#2
0
 public override void Accept(VisitAction visitor)
 {
     Console.WriteLine("VisitWoman.Accept");
     visitor.GetWomanConclusion(this);
 }
示例#3
0
 public abstract void Accept(VisitAction visitor);