Copies the
StackT to an existing one-dimensional
Array, starting at the specified array index.
Namespace: System.Collections.GenericAssembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntaxpublic void CopyTo(
T[] array,
int arrayIndex
)
Parameters
- array
- Type: T
The one-dimensional Array that is the destination of the elements copied from StackT. The Array must have zero-based indexing. - arrayIndex
- Type: SystemInt32
The zero-based index in array at which copying begins.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex is less than zero. |
| ArgumentException | The number of elements in the source StackT is greater than the available space from arrayIndex to the end of the destination array. |
See Also