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

  • arrayIndex
    Type: System.Int32

    The 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.

See Also

Reference

ImmutableSortedDictionary<TKey, TValue> Class

System.Collections.Immutable Namespace