public void CopyTo(IItemSet <TOuter>[] array, int arrayIndex) { var result = new IItemSet <TInner> [array.Length]; _inner.CopyTo(result, arrayIndex); for (var i = 0; i < array.Length; i++) { array[i] = new ProxyItemSet <TInner, TOuter>(result[i]); } }
public void CopyTo(TOuter[] array, int arrayIndex) { var result = new TInner[array.Length]; _inner.CopyTo(result, arrayIndex); for (var i = 0; i < array.Length; i++) { array[i] = result[i]; } }
/// <summary> /// Copies the elements of the <see cref="T:System.Collections.Generic.ICollection`1" /> 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> public void CopyTo(T[] array, int arrayIndex) { set.CopyTo(array, arrayIndex); }