Exemple #1
0
        object IGlowVisitor <object, object> .Visit(GlowElementCollection glow, object state)
        {
            foreach (var glowElement in glow.Elements)
            {
                glowElement.Accept(this, state);
            }

            return(null);
        }
Exemple #2
0
        /// <summary>
        /// Ensures that the "children" is present.
        /// </summary>
        /// <returns>The value of the "children" field.</returns>
        public GlowElementCollection EnsureChildren()
        {
            var children = Children;

            if (children == null)
            {
                children = new GlowElementCollection(ChildrenTag);
                Insert(children);
            }

            return(children);
        }