Algorithms..::..Copy<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, Int32, array<T>[]()[][], Int32, Int32)
Copies count items from the list or array source, starting at the index sourceIndex,
to the array dest, starting at the index destIndex.
The source may be the same as the destination array.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
Type Parameters
- T
Parameters
- source
- Type: IList<(Of <(<'T>)>)>
The list or array that provide the source items.
- sourceIndex
- Type: Int32
The index within sourceto begin copying items from.
- dest
- Type: array<T>[]()[][]
The array to store the items into.
- destIndex
- Type: Int32
The index within destto begin copying items to.
- count
- Type: Int32
The maximum number of items to copy. The destination array must be large enough to hold this many items.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | sourceIndex is negative or greater than source.Count |
ArgumentOutOfRangeException | destIndex is negative or greater than dest.Length |
ArgumentOutOfRangeException | count is negative or too large. |
ArgumentNullException | source or dest is null. |