/// <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 override TResult VisitCollection(PrtgNodeCollection node) => DefaultVisit(node);
/// <summary> /// Visits a single <see cref="PrtgNodeCollection"/>. /// </summary> /// <param name="node">The node to visit.</param> protected internal abstract void VisitCollection(PrtgNodeCollection node);
/// <summary> /// Visits the children of a <see cref="PrtgNodeCollection"/> and replaces the node if any of its children are modified. /// </summary> /// <param name="node">The node to visit.</param> /// <returns>If any children were modified, a new node with the modified children. Otherwise, the original node.</returns> protected internal override PrtgNode VisitCollection(PrtgNodeCollection node) { return(node.WithChildren(VisitList(node.Children))); }
public PrtgNodeCollectionDebugView(PrtgNodeCollection node) { this.node = node; }