[This is preliminary documentation and is subject to change.]

Copies the values of the ReadOnlyDictionary<(Of <(<'TKey, TValue>)>)> to an Array, starting at a particular Array index.

Namespace: Tools.CollectionsT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public void CopyTo(
	TValue[] array,
	int index
)
Visual Basic
Public Sub CopyTo ( _
	array As TValue(), _
	index As Integer _
)
Visual C++
public:
virtual void CopyTo(
	array<TValue>^ array, 
	int index
) sealed
F#
abstract CopyTo : 
        array:'TValue[] * 
        index:int -> unit 
override CopyTo : 
        array:'TValue[] * 
        index:int -> unit 
JScript
public final function CopyTo(
	array : TValue[], 
	index : int
)

Parameters

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

Implements

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

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionarray is null.
System..::..ArgumentOutOfRangeExceptionarrayIndex is less than 0.
System..::..ArgumentExceptionarray is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source ICollection<(Of <(<'T>)>)> is greater than the available space fromarrayIndex to the end of the destination array. -or- Type T cannot be cast automatically to the type of the destination array.

See Also