public override void Insert(int index, QilNode node) {
if (index < 0 || index > this.count)
throw new IndexOutOfRangeException();
if (this.count == this.members.Length) {
QilNode[] membersNew = new QilNode[this.count * 2];
Array.Copy(this.members, membersNew, this.count);
this.members = membersNew;
}
if (index < this.count)
Array.Copy(this.members, index, this.members, index + 1, this.count - index);
this.count++;
this.members[index] = node;
// Invalidate XmlType
this.xmlType = null;
}