/// <summary>Copies the priority queue to an array.</summary> /// <param name="array">The array to which the queue should be copied.</param> /// <param name="index">The starting index.</param> public virtual void CopyTo(System.Array array, int index) { _heap.CopyTo(array, index); }
/// <summary>Copies the entire heap to a compatible one-dimensional array, starting at the given index.</summary> /// <param name="array">The array to which the heap should be copied.</param> /// <param name="index">The starting index.</param> public override void CopyTo(System.Array array, int index) { lock (_heap.SyncRoot) _heap.CopyTo(array, index); }