| PriorityQueueTContains Method |
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public bool Contains(
T item
)
Public Function Contains (
item As T
) As Boolean
public:
virtual bool Contains(
T item
) sealed
abstract Contains :
item : 'T -> bool
override Contains :
item : 'T -> bool
Parameters
- item
- Type: T
The object to locate in the PriorityQueueT. The value can be for reference types.
Return Value
Type:
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