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

◆ CopyTo() [2/3]

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

Reimplemented from System.Collections.ArrayList.

Definition at line 1781 of file ArrayList.cs.

1782 {
1783 if (array == null)
1784 {
1785 throw new ArgumentNullException("array");
1786 }
1787 if (array.Rank != 1)
1788 {
1789 throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, "array");
1790 }
1791 if (index < 0)
1792 {
1793 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
1794 }
1795 if (array.Length - index < _baseSize)
1796 {
1797 throw new ArgumentException(SR.Argument_InvalidOffLen);
1798 }
1801 }
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.Collections.ArrayList.CopyTo(), System.index, and System.Collections.ArrayList.Range.InternalUpdateRange().