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

◆ Reverse() [2/2]

virtual void System.Collections.ArrayList.Reverse ( 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 2666 of file ArrayList.cs.

2667 {
2668 if (index < 0)
2669 {
2670 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
2671 }
2672 if (count < 0)
2673 {
2674 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
2675 }
2676 if (_size - index < count)
2677 {
2678 throw new ArgumentException(SR.Argument_InvalidOffLen);
2679 }
2680 Array.Reverse(_items, index, count);
2681 _version++;
2682 }

References System.Collections.ArrayList._items, System.Collections.ArrayList._size, System.Collections.ArrayList._version, System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, System.index, and System.Array.Reverse().