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

◆ GetRange()

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

Reimplemented from System.Collections.ArrayList.

Definition at line 1497 of file ArrayList.cs.

1498 {
1499 if (index < 0 || count < 0)
1500 {
1501 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
1502 }
1503 if (Count - index < count)
1504 {
1505 throw new ArgumentException(SR.Argument_InvalidOffLen);
1506 }
1507 return new Range(this, index, count);
1508 }

References System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, System.Collections.ArrayList.ReadOnlyArrayList.Count, and System.index.