public void accept(IComputerPartVisitor computerPartVisitor)
 {
     for (int i = 0; i < parts.Length; i++)
     {
         parts[i].accept(computerPartVisitor);
     }
     computerPartVisitor.visit(this);
 }
 public void accept(IComputerPartVisitor cpv)
 {
     for (int i = 0; i < parts.Count(); i++)
     {
         parts[i].accept(cpv);
     }
     cpv.visit(this);
 }
Exemple #3
0
        public string accept(IComputerPartVisitor computerPartVisitor)
        {
            string str = "";

            for (int i = 0; i < parts.Length; i++)
            {
                str += parts[i].accept(computerPartVisitor) + "\r\n";
            }
            str += computerPartVisitor.visit(this) + "\r\n";
            return(str);
        }
Exemple #4
0
 public void accept(IComputerPartVisitor computerPartVisitor)
 {
     computerPartVisitor.visit(this);
 }
Exemple #5
0
 public string accept(IComputerPartVisitor computerPartVisitor)
 {
     return(computerPartVisitor.visit(this));
 }
 public void accept(IComputerPartVisitor cpv)
 {
     cpv.visit(this);
 }