Copies a given number of elements from this sequence to an array, starting at the position index of this sequence
and at the position destinationIndex of the target array.
Copying will stop once either the end of this sequence is reached, or the end of the array is reached, or count elements have been copied.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public int CopyTo(
int index,
T[] destination,
int destinationIndex,
int count
)
public int CopyTo(
int index,
T[] destination,
int destinationIndex,
int count
)
Public Function CopyTo (
index As Integer,
destination As T(),
destinationIndex As Integer,
count As Integer
) As Integer
Public Function CopyTo (
index As Integer,
destination As T(),
destinationIndex As Integer,
count As Integer
) As Integer
public:
virtual int CopyTo(
int index,
array<T>^ destination,
int destinationIndex,
int count
) sealed
public:
virtual int CopyTo(
int index,
array<T>^ destination,
int destinationIndex,
int count
) sealed
abstract CopyTo :
index : int *
destination : 'T[] *
destinationIndex : int *
count : int -> int
override CopyTo :
index : int *
destination : 'T[] *
destinationIndex : int *
count : int -> int
abstract CopyTo :
index : int *
destination : 'T[] *
destinationIndex : int *
count : int -> int
override CopyTo :
index : int *
destination : 'T[] *
destinationIndex : int *
count : int -> int
Parameters
- index
- Type: System Int32
The position of this sequence at which copying begins.
- destination
- Type: T
The one-dimensional array that is the destination of the elements copied from this sequence.
- destinationIndex
- Type: System Int32
The position of the target array at which copying begins.
- count
- Type: System Int32
The maximum number of elements to copy.
Return Value
Type:
Int32The number of elements copied.
Implements
ISequence T CopyTo(Int32, T , Int32, Int32)See Also