PriorityQueueTCopyTo Method |
Namespace: Ookii.Collections.Generic
Exception | Condition |
---|---|
ArgumentNullException | array is . |
ArgumentOutOfRangeException | arrayIndex is less than 0. |
ArgumentException | arrayIndex is equal to or greater than the length of array, or the number of elements in the source PriorityQueueT is greater than the available space from arrayIndex to the end of the destination array. |
The elements are copied to the Array in the same order in which the enumerator iterates through the PriorityQueueT.
This method is an O(n log n) operation, where n is Count.