Microsoft.Samples.Collections.Heap.SynchronizedHeap Class
Simple class to provide synchronized versions of the Heap API

Access: Private
Base Classes: Heap
  Members Description  
    wrappedHeap    
    syncBase    
    SynchronizedHeap Constructor

 
    Add Add an object to the heap maintaining its heap properties

 
    Extract Extract returns the highest value object from the heap

 
    Peek Look at the element at the top of the heap without removing it.

 
    IsEmpty Test whether the heap is empty of elements.

 
    Clone Create a copy of the heap containing the same object references

 
    Clear Removes all elements from the Heap.

 
    Contains Determines whether an element is in the Heap.

 
    IsSynchronized Gets a value indicating whether access to the heap is synchronized (thread-safe). As this is the synchronization wrapper, it will aways return true.

 
    Count Returns a value indicating the number of objects in the heap. Read-only

 
    CopyTo Copy all the elements stored on the current heap to the specified one-dimensional array starting at the specified index

 
    SyncRoot Gets an object that can be used to synchronize access to the heap

 
    GetEnumerator Returns an enumerator that can iterate through the heap in an unordered fashion.

 
    SynchronizedHeap Special constructor for serialization.

 
    GetObjectData Populates a SerializationInfo with the data needed to serialize the heap.