ReadOnlyCollectionBuilder<T>.ICollection.CopyTo Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Copies the elements of the ICollection<T> to an array, starting at the specified array index.

Namespace:  System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

Syntax

'Declaration
Private Sub CopyTo ( _
    array As Array, _
    index As Integer _
) Implements ICollection.CopyTo
void ICollection.CopyTo(
    Array array,
    int index
)

Parameters

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

Implements

ICollection.CopyTo(Array, Int32)

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.