Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopyTo() [3/3]

override void System.Collections.ArrayList.Range.CopyTo ( int index,
Array array,
int arrayIndex,
int count )
inlinevirtual

Reimplemented from System.Collections.ArrayList.

Definition at line 1803 of file ArrayList.cs.

1804 {
1805 if (array == null)
1806 {
1807 throw new ArgumentNullException("array");
1808 }
1809 if (array.Rank != 1)
1810 {
1811 throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, "array");
1812 }
1813 if (index < 0 || count < 0)
1814 {
1815 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
1816 }
1817 if (array.Length - arrayIndex < count)
1818 {
1819 throw new ArgumentException(SR.Argument_InvalidOffLen);
1820 }
1821 if (_baseSize - index < count)
1822 {
1823 throw new ArgumentException(SR.Argument_InvalidOffLen);
1824 }
1827 }
virtual void CopyTo(Array array)

References System.Collections.ArrayList.Range._baseIndex, System.Collections.ArrayList.Range._baseList, System.Collections.ArrayList.Range._baseSize, System.SR.Arg_RankMultiDimNotSupported, System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.arrayIndex, System.Collections.ArrayList.CopyTo(), System.count, System.index, and System.Collections.ArrayList.Range.InternalUpdateRange().