/// <summary> /// Dispatches the children of a collection to their respective visit methods for eventual dispatchment to the <see cref="innerVisitor"/>. /// </summary> /// <param name="node">The node whose children should be visited.</param> protected internal override void VisitCollection(PrtgNodeCollection node) { //In order to exclude VisitProperty, we need to dispatch to the node's respective visit method, rather than calling //upon innerVisitor directly. foreach (var child in node.Children) { child.Accept(this); } }
/// <summary> /// Visits a single <see cref="PrtgNodeCollection"/> and produces a value of type <typeparamref name="TResult"/>. /// </summary> /// <param name="node">The node to visit.</param> /// <returns>The result of visitng the node.</returns> protected internal abstract TResult VisitCollection(PrtgNodeCollection node);