ConcurrentStack<T>.ToArray 方法

定义

ConcurrentStack<T> 中存储的项复制到一个新的数组。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()

返回

T[]

新数组包含从 ConcurrentStack<T> 复制的元素的快照。A new array containing a snapshot of elements copied from the ConcurrentStack<T>.

实现

适用于

另请参阅