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); }
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); }
public void accept(IComputerPartVisitor computerPartVisitor) { computerPartVisitor.visit(this); }
public string accept(IComputerPartVisitor computerPartVisitor) { return(computerPartVisitor.visit(this)); }
public void accept(IComputerPartVisitor cpv) { cpv.visit(this); }