/// <summary> /// See <see cref="Visitor.VisitContainer"/>. /// </summary> protected override void VisitContainer(Container container) { if (delegates.VisitContainer != null) delegates.VisitContainer(container); base.VisitContainer(container); }
protected override void VisitContainer(Container container) { base.VisitContainer(container); ContainerCount++; }
/// <summary> /// Visits any container element. /// </summary> /// <remarks> /// This method is called for all of the <see cref="Container"/>-derived /// types. /// </remarks> protected virtual void VisitContainer(Container container) { VisitElement(container); foreach (var element in container.Elements) { element.Accept(this); } }