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

◆ RemoveRange()

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

Reimplemented from System.Collections.ArrayList.

Definition at line 412 of file ArrayList.cs.

413 {
414 if (index < 0 || count < 0)
415 {
416 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
417 }
418 if (_list.Count - index < count)
419 {
420 throw new ArgumentException(SR.Argument_InvalidOffLen);
421 }
422 if (count > 0)
423 {
424 _version++;
425 }
426 while (count > 0)
427 {
429 count--;
430 }
431 }
void RemoveAt(int index)

References System.Collections.ArrayList.IListWrapper._list, System.Collections.ArrayList._version, System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, System.Collections.ICollection.Count, System.index, and System.Collections.IList.RemoveAt().