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

SortedSet(Of T) Constructor (IEnumerable(Of T), IComparer(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 and that uses a specified comparer.

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

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

Parameters

collection
Type: System.Collections.Generic.IEnumerable(Of T)
The enumerable collection to be copied.
comparer
Type: System.Collections.Generic.IComparer(Of T)
The default comparer to use for comparing objects.

ExceptionCondition
ArgumentNullException

collection is Nothing.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft