ToArray Method

Task Parallel System.Threading

Copies the elements stored in the ConcurrentQueue<(Of <(T>)>) to a new array.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Function ToArray As T()
C#
public T[] ToArray()

Return Value

A new array containing a snapshot of elements copied from the ConcurrentQueue<(Of <(T>)>).

Implements

IProducerConsumerCollection<(Of <(T>)>)..::.ToArray()()()

See Also