IReadOnlyCollection<T>.CopyTo Method
Definition
Copies the elements of the collection to an array, starting at a particular array index.
Delphi
function CopyTo(var values: TArray<T>; index: Integer): Integer
Parameters
- values
- TArray<T>
The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
- index
- Integer
The zero-based index in array at which copying begins.
Returns
Integer
The number of elements that were copied.