Creates a new set instance based on a sorted tree and initializes it based on a collection of elements.

Namespace: Iesi.Collections.Generic
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)

Syntax

C#
public SortedSet(
	ICollection<T> initialValues,
	IComparer<T> comparer
)
Visual Basic
Public Sub New ( _
	initialValues As ICollection(Of T), _
	comparer As IComparer(Of T) _
)
Visual C++
public:
SortedSet(
	ICollection<T>^ initialValues, 
	IComparer<T>^ comparer
)

Parameters

initialValues
Type: System.Collections.Generic..::..ICollection<(Of <(<'T>)>)>
A collection of elements that defines the initial set contents.
comparer
Type: System.Collections.Generic..::..IComparer<(Of <(<'T>)>)>
The IComparer<(Of <(<'T>)>)> to use for sorting.

See Also