text: public override T Set(int index, T element){if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}T[] blockRef = directory[ToDirectoryIndex(index)];int blockIdx = ToBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;}