internal virtual void Replace(int index, XML xml) { if (index < Length()) { Rhino.Xmlimpl.XmlNode.InternalList newAnnoList = new Rhino.Xmlimpl.XmlNode.InternalList(); newAnnoList.Add(_annos, 0, index); newAnnoList.Add(xml); newAnnoList.Add(_annos, index + 1, Length()); _annos = newAnnoList; } }
private void Insert(int index, XML xml) { if (index < Length()) { Rhino.Xmlimpl.XmlNode.InternalList newAnnoList = new Rhino.Xmlimpl.XmlNode.InternalList(); newAnnoList.Add(_annos, 0, index); newAnnoList.Add(xml); newAnnoList.Add(_annos, index, Length()); _annos = newAnnoList; } }
internal XMLList(XMLLibImpl lib, Scriptable scope, XMLObject prototype) : base(lib, scope, prototype) { _annos = new Rhino.Xmlimpl.XmlNode.InternalList(); }