SortedSet(Of T) Constructor (IEnumerable(Of T))
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the SortedSet(Of T) class that contains elements copied from a specified enumerable collection.
Assembly: System (in System.dll)
Parameters
- collection
- Type: System.Collections.Generic.IEnumerable(Of T)
The enumerable collection to be copied.
Duplicate elements in the enumerable collection are not copied into the new instance of the SortedSet(Of T) class, and no exceptions are thrown.
This constructor is an O(n log n) operation, where n is the number of elements in the collection parameter.