SortedSet<T>.CopyTo Method (T[])

.NET Framework 4.6 and 4.5

Copies the complete SortedSet<T> to a compatible one-dimensional array, starting at the beginning of the target array.

Namespace:  System.Collections.Generic
Assemblies:   System (in System.dll)
  System.Collections (in System.Collections.dll)

public void CopyTo(
	T[] array
)

Parameters

array
Type: T[]

A one-dimensional array that is the destination of the elements copied from the SortedSet<T>.

ExceptionCondition
ArgumentException

The number of elements in the source SortedSet<T> exceeds the number of elements that the destination array can contain.

ArgumentNullException

array is null.

The indexing of array must be zero-based.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft