private void OnRemoving(XmlCollectionItem <T> item) { advisor.OnRemoving(item.Value); if (accessor.IsReference) { references.OnAssigningNull(item.Node, item.Value); } }
private bool CommitInsert(int index, IXmlNode node, T value, bool append) { var item = new XmlCollectionItem <T>(node, value); if (append) { items.Add(item); } else { items.Insert(index, item); } advisor.OnInserted(value, index); return(true); }