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

◆ RemoveRange()

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

Reimplemented from System.Collections.ArrayList.

Definition at line 1994 of file ArrayList.cs.

1995 {
1996 if (index < 0 || count < 0)
1997 {
1998 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
1999 }
2000 if (_baseSize - index < count)
2001 {
2002 throw new ArgumentException(SR.Argument_InvalidOffLen);
2003 }
2005 if (count > 0)
2006 {
2009 _baseSize -= count;
2010 }
2011 }
virtual void RemoveRange(int index, int count)

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.RemoveRange().