Click or drag to resize
AlgorithmsCopyT Method (IListT, Int32, T, Int32, Int32)
Copies count items from the list or array source, starting at the index sourceIndex, to the array dest, starting at the index destIndex. The source may be the same as the destination array.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static void Copy<T>(
	IList<T> source,
	int sourceIndex,
	T[] dest,
	int destIndex,
	int count
)

Parameters

source
Type: System.Collections.GenericIListT
The list or array that provide the source items.
sourceIndex
Type: SystemInt32
The index within sourceto begin copying items from.
dest
Type: T
The array to store the items into.
destIndex
Type: SystemInt32
The index within destto begin copying items to.
count
Type: SystemInt32
The maximum number of items to copy. The destination array must be large enough to hold this many items.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.Copy``1(System.Collections.Generic.IList{``0},System.Int32,``0[],System.Int32,System.Int32)"]

Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionsourceIndex is negative or greater than source.Count
ArgumentOutOfRangeExceptiondestIndex is negative or greater than dest.Length
ArgumentOutOfRangeExceptioncount is negative or too large.
ArgumentNullExceptionsource or dest is null.
See Also