public T this[ulong index] { get { if (this.root == null) { return(default(T)); } return(this.root.GetValue(index)); } set { if (this.root == null) { this.root = new SparseArrayLeafNode <T>(index, this.nodesize); } this.root = this.root.SetValue(index, value); } }
internal void SetSlot(ulong position, ISparseArrayNode <T> subnode) { this.subnodes[this.GetSlotPosition(position)] = subnode; }