Rediger

Del via


ConcurrentBag<T>.ToArray Method

Definition

Copies the ConcurrentBag<T> elements 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 ConcurrentBag<T>.

Implements

Applies to

See also