EqtBaseCollection<T>.CopyTo Method

Copies all items in the collection to the provided array, starting with the provided index.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Public Overridable Sub CopyTo ( _
    array As T(), _
    index As Integer _
)
public virtual void CopyTo(
    T[] array,
    int index
)
public:
virtual void CopyTo(
    array<T>^ array, 
    int index
)
abstract CopyTo : 
        array:'T[] * 
        index:int -> unit 
override CopyTo : 
        array:'T[] * 
        index:int -> unit 
public function CopyTo(
    array : T[], 
    index : int
)

Parameters

  • array
    Type: array<T[]
    An array of type T.
  • index
    Type: System.Int32
    The index of the collection to start to copy items.

Implements

ICollection<T>.CopyTo(array<T[], Int32)

Remarks

Notes to Implementers

In derived classes, you must implement a custom version of this method by using the specific type that matches the generic type of your collection.

.NET Framework Security

See Also

Reference

EqtBaseCollection<T> Class

Microsoft.VisualStudio.TestTools.Common Namespace