Edit

Share via


ConcurrentBag<T>.ToArray Method

Definition

Copies the ConcurrentBag<T> elements to a new array.

public T[] ToArray();

Returns

T[]

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

Implements

Applies to

See also