Click or drag to resize

PriorityQueueTContains Method

Determines whether an element is in the PriorityQueueT.

Namespace: Ookii.Jumbo
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public bool Contains(
	T item
)

Parameters

item  T
The object to locate in the PriorityQueueT. The value can be for reference types.

Return Value

Boolean
if item is found in the PriorityQueueT otherwise, .

Implements

ICollectionTContains(T)
Remarks

This method determines equality using the default equality comparer Default for T, the type of values in the priority queue.

This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.

See Also