/// <summary> /// Remove a node by name /// </summary> /// <param name="node">The name of the node to remove</param> public void RemoveNode(string node) { DataNode ret = GetNodeNoThrow(node); if (ret != null) { ret.RemoveNode(); } }
/// <summary> /// Implementation of delete member /// </summary> /// <param name="binder">The binder</param> /// <returns>True if member could be deleted</returns> public override bool TryDeleteMember(System.Dynamic.DeleteMemberBinder binder) { DataNode n = GetNodeNoThrow(binder.Name); if (n != null) { n.RemoveNode(); return(true); } else { return(base.TryDeleteMember(binder)); } }