Beispiel #1
0
        public bool Accept(ISchemaVisitor visitor)
        {
            if (visitor.VisitEnter(this))
            {
                foreach (var product in products)
                {
                    if (!product.Accept(visitor))
                        break;
                }
            }

            return visitor.VisitLeave(this);
        }
Beispiel #2
0
        public override bool Accept(ISchemaVisitor visitor)
        {
            if (visitor.VisitEnter(this))
            {
                foreach (var property in Properties)
                {
                    if (!property.Accept(visitor))
                        break;
                }

                foreach (var component in Components)
                {
                    if (!component.Accept(visitor))
                        break;
                }
            }

            return visitor.VisitLeave(this);
        }