/// <summary> /// Removes and returns the direct Child with the given key /// </summary> /// <param name="key"></param> /// <returns></returns> public StringNode <V> RemoveChild(string key) { StringNode <V> child = this.GetChild(key); if (child != null) { child.Remove(); } return(child); }
/// <summary> /// Removes and returns the direct Child with the given key /// </summary> /// <returns></returns> public StringNode <V> FindAndRemoveChild(string[] keyChain, int index) { StringNode <V> child = this.FindChild(keyChain, index); if (child != null) { child.Remove(); } return(child); }
/// <summary> /// Removes and returns the direct Child with the given key /// </summary> /// <returns></returns> public StringNode <V> FindAndRemoveChild(string[] keyChain) { StringNode <V> child = FindChild(keyChain); if (child != null) { child.Remove(); } return(child); }