Dictionary<(Of <(<'TKey1, TKey2, TValue>)>)>..::..CopyTo Method

Copies the elements of the [ICollection{T}] to an [Array], starting at a particular [Array] index.

Namespace:  Tortuga.Anchor.Collections
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public void CopyTo(
	KeyValuePair<ValueTuple<TKey1, TKey2>, TValue>[] array,
	int arrayIndex
)
Public Sub CopyTo ( _
	array As KeyValuePair(Of ValueTuple(Of TKey1, TKey2), TValue)(), _
	arrayIndex As Integer _
)

Parameters

array
Type: array<KeyValuePair<(Of <(<'ValueTuple<(Of <(<'TKey1, TKey2>)>)>, TValue>)>)>>[]()[][]
The one-dimensional [Array] that is the destination of the elements copied from [ICollection{T}]. The [Array] must have zero-based indexing.
arrayIndex
Type: Int32
The zero-based index in array at which copying begins.

Exceptions


ExceptionCondition
[ArgumentNullException]array is nullNothingnullptra null reference (Nothing in Visual Basic).
[ArgumentOutOfRangeException]arrayIndex is less than 0.
[ArgumentException]The number of elements in the source [ICollection{T}] is greater than the available space from arrayIndex to the end of the destination array.