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

◆ Reverse() [2/2]

override void System.Collections.ArrayList.Range.Reverse ( int index,
int count )
inlinevirtual

Reimplemented from System.Collections.ArrayList.

Definition at line 2013 of file ArrayList.cs.

2014 {
2015 if (index < 0 || count < 0)
2016 {
2017 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
2018 }
2019 if (_baseSize - index < count)
2020 {
2021 throw new ArgumentException(SR.Argument_InvalidOffLen);
2022 }
2026 }

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.index, System.Collections.ArrayList.Range.InternalUpdateRange(), System.Collections.ArrayList.Range.InternalUpdateVersion(), and System.Collections.ArrayList.Reverse().