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

◆ GetRange()

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

Reimplemented from System.Collections.ArrayList.

Definition at line 475 of file ArrayList.cs.

476 {
477 if (index < 0 || count < 0)
478 {
479 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
480 }
481 if (_list.Count - index < count)
482 {
483 throw new ArgumentException(SR.Argument_InvalidOffLen);
484 }
485 return new Range(this, index, count);
486 }

References System.Collections.ArrayList.IListWrapper._list, System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, System.Collections.ICollection.Count, and System.index.