Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedSet<(Of <(<'T>)>)> Constructor (IComparer<(Of <(<'T>)>)>)

Creates a new OrderedSet. The Compare method of the passed comparison object will be used to compare items in this set.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public OrderedSet(
	IComparer<T> comparer
)
Public Sub New ( _
	comparer As IComparer(Of T) _
)
public:
OrderedSet(
	IComparer<T>^ comparer
)

Parameters

comparer
Type: IComparer<(Of <(<'T>)>)>
An instance of IComparer<T> that will be used to compare items.

Remarks


The GetHashCode and Equals methods of the provided IComparer<T> will never be called, and need not be implemented.