public override QilNode this[int index] {
get {
switch (index) {
case 0: return this.left;
case 1: return this.right;
default: throw new IndexOutOfRangeException();
}
}
set {
switch (index) {
case 0: this.left = value; break;
case 1: this.right = value; break;
default: throw new IndexOutOfRangeException();
}
}
}