ConcurrentQueue<T>.ToArray ConcurrentQueue<T>.ToArray ConcurrentQueue<T>.ToArray ConcurrentQueue<T>.ToArray Method

Definition

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

public:
 virtual cli::array <T> ^ ToArray();
public T[] ToArray ();
abstract member ToArray : unit -> 'T[]
override this.ToArray : unit -> 'T[]
Public Function ToArray () As T()

Returns

T[]

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

Implements

Applies to

See also