Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HashSet<T>.CopyTo Method

Copies the elements of a HashSet<T> collection to an array.

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 Supported by Portable Class Library CopyTo(T[]) Copies the elements of a HashSet<T> object to an array.
Public method Supported by Portable Class Library CopyTo(T[], Int32) Copies the elements of a HashSet<T> object to an array, starting at the specified array index.
Public method Supported by Portable Class Library CopyTo(T[], Int32, Int32) Copies the specified number of elements of a HashSet<T> object to an array, starting at the specified array index.
Top
Show:
© 2015 Microsoft