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

◆ RemoveAt()

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

Reimplemented in System.Collections.SortedList.SyncSortedList.

Definition at line 887 of file SortedList.cs.

888 {
889 if (index < 0 || index >= Count)
890 {
891 throw new ArgumentOutOfRangeException("index", System.SR.ArgumentOutOfRange_Index);
892 }
893 _size--;
894 if (index < _size)
895 {
896 Array.Copy(keys, index + 1, keys, index, _size - index);
897 Array.Copy(values, index + 1, values, index, _size - index);
898 }
899 keys[_size] = null;
900 values[_size] = null;
901 version++;
902 }
static string ArgumentOutOfRange_Index
Definition SR.cs:30
Definition SR.cs:7

References System.Collections.SortedList._size, System.SR.ArgumentOutOfRange_Index, System.Array.Copy(), System.Collections.SortedList.Count, System.index, System.Collections.SortedList.keys, System.Collections.SortedList.values, and System.Collections.SortedList.version.

Referenced by System.Collections.SortedList.Remove(), and System.Collections.SortedList.SyncSortedList.RemoveAt().