Copies the elements of the Dictionary to an array, starting at the specified array index.

Namespace: System.Extensions.Collections.ObjectModel
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
public void CopyTo(
	KeyValuePair<TKey, TValue>[] array,
	int arrayIndex
)
Visual Basic
Public Sub CopyTo ( 
	array As KeyValuePair(Of TKey, TValue)(),
	arrayIndex As Integer
)
Visual C++
public:
virtual void CopyTo(
	array<KeyValuePair<TKey, TValue>>^ array, 
	int arrayIndex
) sealed
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 that is the destination of the elements copied from the Dictionary. The 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