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

◆ GetEnumerator() [2/2]

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

Reimplemented from System.Collections.ArrayList.

Definition at line 1834 of file ArrayList.cs.

1835 {
1836 if (index < 0 || count < 0)
1837 {
1838 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
1839 }
1840 if (_baseSize - index < count)
1841 {
1842 throw new ArgumentException(SR.Argument_InvalidOffLen);
1843 }
1846 }
virtual IEnumerator GetEnumerator()

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