/// <summary> /// Visits the children of a <see cref="DeviceNode"/> 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 VisitDevice(DeviceNode node) { return(node.WithChildren(VisitList(node.Children))); }
/// <summary> /// Visits a single <see cref="DeviceNode"/> 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 VisitDevice(DeviceNode node) => DefaultVisit(node);
/// <summary> /// Visits a single <see cref="DeviceNode"/>. /// </summary> /// <param name="node">The node to visit.</param> protected internal abstract void VisitDevice(DeviceNode node);