public virtual void ensureCapacity(int minimumCapacity){object[] a = array;if (a.Length < minimumCapacity){object[] newArray = new object[minimumCapacity];System.Array.Copy(a, 0, newArray, 0, _size);array = newArray;modCount++;}}