Example #1
0
 /// <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);
Example #2
0
 /// <summary>
 /// Visits a single <see cref="PrtgNodeCollection"/>.
 /// </summary>
 /// <param name="node">The node to visit.</param>
 protected internal abstract void VisitCollection(PrtgNodeCollection node);
Example #3
0
 /// <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)));
 }
Example #4
0
 public PrtgNodeCollectionDebugView(PrtgNodeCollection node)
 {
     this.node = node;
 }