Copies the entire sequence to an array, starting 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.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public int CopyTo(
T[] destination,
int destinationIndex
)
public int CopyTo(
T[] destination,
int destinationIndex
)
Public Function CopyTo (
destination As T(),
destinationIndex As Integer
) As Integer
Public Function CopyTo (
destination As T(),
destinationIndex As Integer
) As Integer
public:
virtual int CopyTo(
array<T>^ destination,
int destinationIndex
) sealed
public:
virtual int CopyTo(
array<T>^ destination,
int destinationIndex
) sealed
abstract CopyTo :
destination : 'T[] *
destinationIndex : int -> int
override CopyTo :
destination : 'T[] *
destinationIndex : int -> int
abstract CopyTo :
destination : 'T[] *
destinationIndex : int -> int
override CopyTo :
destination : 'T[] *
destinationIndex : int -> int
Parameters
- 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.
Return Value
Type:
Int32The number of elements copied.
Implements
ISequence T CopyTo( T , Int32)See Also