System::Collections::Generic::Stack::ToArray 方法

Stack::ToArray method

将栈转换为数组。

virtual ArrayPtr<T> System::Collections::Generic::Stack<T>::ToArray()

ReturnValue

新创建的元素,包含堆栈中所有元素的副本。

另见