public void ensureCapacity(int minimumCapacity) {Object[] a = array;if (a.length < minimumCapacity) {Object[] newArray = new Object[minimumCapacity];System.arraycopy(a, 0, newArray, 0, size);array = newArray;modCount++;}}
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++;}}