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

◆ GetRange()

override ArrayList System.Collections.ArrayList.Range.GetRange ( int index,
int count )
inlinevirtual

Reimplemented from System.Collections.ArrayList.

Definition at line 1848 of file ArrayList.cs.

1849 {
1850 if (index < 0 || count < 0)
1851 {
1852 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
1853 }
1854 if (_baseSize - index < count)
1855 {
1856 throw new ArgumentException(SR.Argument_InvalidOffLen);
1857 }
1859 return new Range(this, index, count);
1860 }
Range(ArrayList list, int index, int count)

References System.Collections.ArrayList.Range.Range(), System.Collections.ArrayList.Range._baseSize, System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, System.index, and System.Collections.ArrayList.Range.InternalUpdateRange().