Bewerken

Share via


ConcurrentStack<T>.ToArray Method

Definition

Copies the items stored in the ConcurrentStack<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 ConcurrentStack<T>.

Implements

Applies to

See also