 | PriorityQueueTContains Method |
Namespace: Ookii.JumboAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic 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 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