 | PriorityQueueTCopyTo Method |
Copies the
PriorityQueueT elements to an existing one-dimensional
Array, starting at the specified array index.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntaxpublic void CopyTo(
T[] array,
int arrayIndex
)
Public Sub CopyTo (
array As T(),
arrayIndex As Integer
)
public:
virtual void CopyTo(
array<T>^ array,
int arrayIndex
) sealed
abstract CopyTo :
array : 'T[] *
arrayIndex : int -> unit
override CopyTo :
array : 'T[] *
arrayIndex : int -> unit
Parameters
- array
- Type: T
The one-dimensional Array that is the destination of the elements copied from PriorityQueueT.
The Array must have zero-based indexing. - arrayIndex
- Type: SystemInt32
The zero-based index in array at which copying begins.
Implements
ICollectionTCopyTo(T, Int32)
Exceptions
Remarks Note |
---|
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.
See Also