| PriorityQueueTContains Method |
Namespace:
Ookii.Collections.Generic
Assembly:
Ookii.Collections.Generic (in Ookii.Collections.Generic.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool Contains(
T item
)
Public Function Contains (
item As T
) As Boolean
public:
bool Contains(
T item
)
member 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,
.
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