ImmutableSortedDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>>.CopyTo Method
Copies the elements of the collection to an array, starting at the specified index.
Namespace: System.Collections.Immutable
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
Syntax
'Declaration
Private Sub CopyTo ( _
array As KeyValuePair(Of TKey, TValue)(), _
arrayIndex As Integer _
) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo
void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(
KeyValuePair<TKey, TValue>[] array,
int arrayIndex
)
private:
virtual void CopyTo(
array<KeyValuePair<TKey, TValue>>^ array,
int arrayIndex
) sealed = ICollection<KeyValuePair<TKey, TValue>>::CopyTo
private abstract CopyTo :
array:KeyValuePair<'TKey, 'TValue>[] *
arrayIndex:int -> unit
private override CopyTo :
array:KeyValuePair<'TKey, 'TValue>[] *
arrayIndex:int -> unit
JScript does not support explicit interface implementations.
Parameters
array
Type: System.Collections.Generic.KeyValuePair<TKey, TValue>[]The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
arrayIndex
Type: System.Int32The zero-based index in array at which copying begins.
Implements
ICollection<T>.CopyTo(T[], Int32)
Remarks
This member is an explicit interface member implementation. It can be used only when the ImmutableSortedDictionary<TKey, TValue> instance is cast to an ICollection<T> interface.