Initializes a new instance of the PriorityQueue class with the specified IComparer.

Namespace: LSCollections
Assembly: Tsp (in Tsp.exe) Versión: 1.0.0.0 (1.0.0.0)

Syntax

C#
public PriorityQueue(
	IComparer comparer
)
Visual Basic
Public Sub New ( _
	comparer As IComparer _
)
Visual C++
public:
PriorityQueue(
	IComparer^ comparer
)

Parameters

comparer
Type: System.Collections..::..IComparer
The IComparer to use for comparing and ordering elements.

Remarks

If the specified IComparer is null, the PriorityQueue will cast its elements to the IComparable interface when making comparisons.

See Also