Пример #1
0
        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);
        }
Пример #2
0
        public override void Accept(IBookVisitor visitor)
        {
            visitor.BeginVisit(this);

            foreach (Address address in this.Addresses)
            {
                address.Accept(visitor);
            }

            visitor.EndVisit(this);
        }
Пример #3
0
 public void Accept(IBookVisitor visitor)
 {
     visitor.BeginVisit(this as dynamic);
     visitor.EndVisit(this as dynamic);
 }