/// <summary> /// Removes a node from the scene index. /// </summary> /// <param name="node">The node.</param> public void Remove(IVisualNode node) { Contract.Requires <ArgumentNullException>(node != null); _index.Remove(node.Visual); node.Dispose(); }
/// <summary> /// Removes a node from the scene index. /// </summary> /// <param name="node">The node.</param> public void Remove(IVisualNode node) { _ = node ?? throw new ArgumentNullException(nameof(node)); _index.Remove(node.Visual); node.Dispose(); }
/// <summary> /// Removes a child from the <see cref="Children"/> collection. /// </summary> /// <param name="child">The child to remove.</param> public void RemoveChild(IVisualNode child) { EnsureChildrenCreated(); _children.Remove(child); child.Dispose(); }