Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SortedSet<T>.CopyTo Method

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method CopyTo(T[]) Copies the complete SortedSet<T> to a compatible one-dimensional array, starting at the beginning of the target array.
Public method CopyTo(T[], Int32) Copies the complete SortedSet<T> to a compatible one-dimensional array, starting at the specified array index.
Public method CopyTo(T[], Int32, Int32) Copies a specified number of elements from SortedSet<T> to a compatible one-dimensional array, starting at the specified array index.
Top

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.