コード例 #1
0
 /// <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)));
 }
コード例 #2
0
 /// <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);
コード例 #3
0
ファイル: PrtgNodeVisitor.cs プロジェクト: loftwah/PrtgAPI
 /// <summary>
 /// Visits a single <see cref="DeviceNode"/>.
 /// </summary>
 /// <param name="node">The node to visit.</param>
 protected internal abstract void VisitDevice(DeviceNode node);