private void InsertBefore(NodeCache nodeCache) { Check(true); if (nodeCache != null) { Updates.Do(new Insert(null, nodeCache.value(), false, false, true, false, DbNode)); } }
// Used by ReadInnerXml(), ReadInnerText(), and set_Value() // Deletes all the child nodes and adds the nodeCache nodes, does nothing if nodeCache is null private void ReplaceChildren(NodeCache nodeCache) { if (nodeCache != null) { ANode[] nodes = EnumerateANodes(ANode.children()).ToArray(); using (new Updates()) { Updates.Do(new Delete(null, Seq.get(nodes, nodes.Length))); Updates.Do(new Insert(null, nodeCache.value(), false, true, false, false, DbNode)); } } }