/// <summary> /// Creates a new <see cref="PropertyNode"/> from a property. /// </summary> /// <param name="property">The property this node represents.</param> /// <returns>A node containing the specified property.</returns> public static PropertyNode Property(PropertyValuePair property) => PrtgOrphan.Property(property).ToStandaloneNode <PropertyNode>();
/// <summary> /// Encapsulates a <see cref="PropertyValuePair"/> and its children as a <see cref="PropertyOrphan"/>. /// </summary> /// <param name="value">The property to encapsulate.</param> /// <param name="children">The children of the property.</param> /// <returns>A <see cref="PropertyOrphan"/> encapsulating the specified <see cref="PropertyValuePair"/> and children.</returns> public override PrtgOrphan Orphan(ITreeValue value, IEnumerable <PrtgOrphan> children) => PrtgOrphan.Property((PropertyValuePair)value);