SortedSet<T>.CopyTo Method

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Copies a portion or all of a SortedSet<T> to a compatible one-dimensional array, starting at the beginning of the destination array or at a specified index.

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

NameDescription
System_CAPS_pubmethodCopyTo(T[])

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

System_CAPS_pubmethodCopyTo(T[], Int32)

Copies the complete SortedSet<T> to a compatible one-dimensional array, starting at the specified array index.

System_CAPS_pubmethodCopyTo(T[], Int32, Int32)

Copies a specified number of elements from SortedSet<T> to a compatible one-dimensional array, starting at the specified array index.

This method is an O(n) operation, where n is Count.

Return to top
Show: