Share via


Queue.ToArray Method

Copies the Queue elements to a new array.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual Object [] ToArray ()

Return Value

A new array that contains elements copied from the Queue.

Remarks

This method is an O(n) operation, where n specifies Count. Queue is not modified. The order of the elements in the new array is the same as the order of the elements in the Queue.

Version Information

Available in the .NET Micro Framework version 4.1 and 4.2.

See Also

Reference

Queue Class
Queue Members
System.Collections Namespace