
public void
CopyTo(T[] array, int arrayIndex);
Copies the System.Collections.Generic.Stack<T> to an existing one-dimensional System.Array, starting at the specified array index.
Полное описание ...
Parameters:
array:
The one-dimensional System.Array that is the destination of the elements
copied from System.Collections.Generic.Stack<T>. The System.Array must have
zero-based indexing.
arrayIndex:
The zero-based index in array at which copying begins.
Exceptions:
System.ArgumentNullException:
array is null.
System.ArgumentOutOfRangeException:
arrayIndex is less than zero.
System.ArgumentException:
The number of elements in the source System.Collections.Generic.Stack<T>
is greater than the available space from arrayIndex to the end of the destination
array.