public override void RemoveChild(IElement element) { if (element.IsLocked) { throw new ElementIsLockedException(element.Name); } ChildrenList.Remove(element); }
internal void ImmediatelyRemoveChild(Object2D child) { if (IsAlive) { CoreObject.RemoveChild(child.CoreObject); ChildrenList.Remove(child); } }
public virtual void RemoveChild(TValue value) { var node = ChildrenList.FirstOrDefault(x => value.Equals(x.Value)); if (node == null) { throw new InvalidOperationException(string.Format("Could not find child '{0}'.", value)); } ChildrenList.Remove(node); }
public void RemovedChild(Entity e) { ChildrenList.Remove(e); }
/// <summary> /// Remove a child from this RecursiveTree /// </summary> /// <param name="child">The child to be removed</param> public void RemoveChild(RecursiveTree <V> child) { try { ChildrenList.Remove(child); } catch { throw new Exception("Child is no child of this node!"); } }