Copies the elements of the Collection to an System.Array, starting at a particular System.Array index.

Namespace: MonoSoftware.Core.Collections
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public virtual void CopyTo(
	KeyValuePair<TKey, TValue>[] array,
	int arrayIndex
)
Visual Basic
Public Overridable Sub CopyTo ( 
	array As KeyValuePair(Of TKey, TValue)(),
	arrayIndex As Integer
)
Visual C++
public:
virtual void CopyTo(
	array<KeyValuePair<TKey, TValue>>^ array, 
	int arrayIndex
)
F#
abstract CopyTo : 
        array : KeyValuePair<'TKey, 'TValue>[] * 
        arrayIndex : int -> unit 
override CopyTo : 
        array : KeyValuePair<'TKey, 'TValue>[] * 
        arrayIndex : int -> unit 

Parameters

array
Type: array<System.Collections.Generic..::..KeyValuePair<(Of <(<'TKey, TValue>)>)>>[]()[][]
The one-dimensional System.Array that is the destination of the elements copied from Collection. The System.Array must have zero-based indexing.
arrayIndex
Type: System..::..Int32
The zero-based index in array at which copying begins.

Implements

ICollection<(Of <(<'T>)>)>..::..CopyTo(array<T>[]()[][], Int32)

See Also