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

◆ GetEnumerator() [2/2]

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

Reimplemented in System.Collections.ArrayList.IListWrapper, System.Collections.ArrayList.SyncArrayList, System.Collections.ArrayList.FixedSizeArrayList, System.Collections.ArrayList.ReadOnlyArrayList, and System.Collections.ArrayList.Range.

Definition at line 2455 of file ArrayList.cs.

2456 {
2457 if (index < 0)
2458 {
2459 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
2460 }
2461 if (count < 0)
2462 {
2463 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
2464 }
2465 if (_size - index < count)
2466 {
2467 throw new ArgumentException(SR.Argument_InvalidOffLen);
2468 }
2469 return new ArrayListEnumerator(this, index, count);
2470 }

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