Microsoft.Samples.Collections.Heap.SynchronizedHeap.Contains Function
Determines whether an element is in the Heap.
Public bool Contains (object)
Type
Name
Description
object
obj
The Object to locate in the Heap. The value can be a null reference (Nothing in Visual Basic).
Return
Description
bool
true if obj is found in the Heap; otherwise, false.
Remarks:
This method performs with average execution time that is linear. That is, this method is an O(n) operation, where n is Count.
This method determines equality by calling Object.Equals.