/// <summary> /// Copies the elements of the collection to an <see cref="T:System.Array"/>, /// starting at a particular <see cref="T:System.Array"/> index. /// </summary> /// <param name="array"> /// The one-dimensional <see cref="T:System.Array"/> that is the destination of the elements copied from /// <see cref="T:System.Collections.Generic.ICollection`1"/>. The <see cref="T:System.Array"/> must have zero-based indexing. /// </param> /// <param name="arrayIndex"> /// The zero-based index in <paramref name="array"/> at which copying begins. /// </param> /// <exception cref="T:System.ArgumentNullException"><paramref name="array"/> is null.</exception> /// <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="arrayIndex"/> is less than 0.</exception> /// <exception cref="T:System.ArgumentException"> /// <paramref name="array"/> is multidimensional.-or-<paramref name="arrayIndex"/> is equal to or greater than the length of /// <paramref name="array"/>.-or-The number of elements in the source <see cref="T:System.Collections.Generic.ICollection`1"/> /// is greater than the available space from <paramref name="arrayIndex"/> to the end of the destination <paramref name="array"/>. /// -or-Type T cannot be cast automatically to the type of the destination <paramref name="array"/>. /// </exception> public void CopyTo(T[] array, int arrayIndex) { Copy.CopyTo(this, array, arrayIndex); }
/// <summary> /// Copies the elements of the <see cref="PersistentDictionary{TKey,TValue}"/> to an <see cref="T:System.Array"/>, starting at a particular <see cref="T:System.Array"/> index. /// </summary> /// <param name="array"> /// The one-dimensional <see cref="T:System.Array"/> that is the destination /// of the elements copied from <see cref="PersistentDictionary{TKey,TValue}"/>. /// The <see cref="T:System.Array"/> must have zero-based indexing.</param> /// <param name="arrayIndex"> /// The zero-based index in <paramref name="array"/> at which copying begins. /// </param> /// <exception cref="T:System.ArgumentNullException"><paramref name="array"/> is null.</exception> /// <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="arrayIndex"/> is less than 0.</exception> /// <exception cref="T:System.ArgumentException"> /// <paramref name="arrayIndex"/> is equal to or greater than the length of <paramref name="array"/>. /// -or-The number of elements in the source <see cref="PersistentDictionary{TKey,TValue}"/> is greater /// than the available space from <paramref name="arrayIndex"/> to the end of the destination <paramref name="array"/>. /// </exception> public void CopyTo(KeyValuePair <TKey, TValue>[] array, int arrayIndex) { Copy.CopyTo(this, array, arrayIndex); }