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.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | collection is Nothing. |
Show: