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

◆ RemoveAt()

virtual void System.Collections.ArrayList.RemoveAt ( int index)
inlinevirtual

Implements System.Collections.IList.

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 2602 of file ArrayList.cs.

2603 {
2604 if (index < 0 || index >= _size)
2605 {
2606 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_Index);
2607 }
2608 _size--;
2609 if (index < _size)
2610 {
2611 Array.Copy(_items, index + 1, _items, index, _size - index);
2612 }
2613 _items[_size] = null;
2614 _version++;
2615 }

References System.Collections.ArrayList._items, System.Collections.ArrayList._size, System.Collections.ArrayList._version, System.SR.ArgumentOutOfRange_Index, System.Array.Copy(), and System.index.

Referenced by System.Collections.CollectionBase.Add(), System.Collections.Specialized.NameObjectCollectionBase.BaseRemove(), System.Collections.Specialized.NameObjectCollectionBase.BaseRemoveAt(), System.Collections.CollectionBase.Insert(), System.ComponentModel.Design.Serialization.ContextStack.Pop(), System.Xml.Schema.AxisStack.Pop(), System.Net.CookieCollection.Remove(), System.Collections.CollectionBase.Remove(), System.Collections.ArrayList.Remove(), System.Net.CookieCollection.RemoveAt(), System.Collections.CollectionBase.RemoveAt(), System.Collections.Specialized.StringCollection.RemoveAt(), System.Collections.ArrayList.SyncArrayList.RemoveAt(), System.Collections.ArrayList.Range.RemoveAt(), System.Xml.Serialization.WorkItems.RemoveAt(), System.Data.DataRelationCollection.DataTableRelationCollection.RemoveCache(), and System.Data.DataRelationCollection.DataSetRelationCollection.RemoveCore().