/// <summary> /// Visits a single <see cref="PrtgNode"/> and produces a value of type <typeparamref name="TResult"/>. /// </summary> /// <param name="node">The node to visit.</param> /// <returns>If the node was not null, the value produced by visiting it. Otherwise, the default value of <typeparamref name="TResult"/>.</returns> public virtual TResult Visit(PrtgNode node) { if (node != null) { return(node.Accept(this)); } return(default(TResult)); }