SortedSet(T) Constructor (IEnumerable(T))
Collapse the table of content
Expand the table of content

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.

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

'Declaration
Public Sub New ( _
	collection As IEnumerable(Of T) _
)

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft