public override void Accept(IBookVisitor visitor) { visitor.BeginVisit(this as dynamic); foreach (BookItem item in this.Items) { item.Accept(visitor); } visitor.EndVisit(this as dynamic); }
public override void Accept(IBookVisitor visitor) { visitor.BeginVisit(this); foreach (Address address in this.Addresses) { address.Accept(visitor); } visitor.EndVisit(this); }
public void Accept(IBookVisitor visitor) { visitor.BeginVisit(this as dynamic); visitor.EndVisit(this as dynamic); }