com.onlineobject.objectnet Namespace

EmbeddedPriorityQueue<(Of <(<'TElement, TPriority>)>)> Constructor (IComparer<(Of <(<'TPriority>)>)>, Int32)

Initializes a new instance of the EmbeddedPriorityQueue<(Of <(<'TElement, TPriority>)>)> class with the specified custom priority comparer.

Namespace:  com.onlineobject.objectnet.server.Utils
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public EmbeddedPriorityQueue(

	IComparer<TPriority> comparer,

	int capacity

)

Parameters

comparer
Type: IComparer<(Of <(<'TPriority>)>)>
Custom comparer dictating the ordering of elements.
capacity
Type: Int32
Initial capacity to allocate for the underlying heap array.