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

◆ RemoveAt()

void System.Collections.Specialized.OrderedDictionary.RemoveAt ( int index)
inline

Implements System.Collections.Specialized.IOrderedDictionary.

Definition at line 338 of file OrderedDictionary.cs.

339 {
340 if (_readOnly)
341 {
342 throw new NotSupportedException(System.SR.OrderedDictionary_ReadOnly);
343 }
344 if (index >= Count || index < 0)
345 {
346 throw new ArgumentOutOfRangeException("index");
347 }
348 Hashtable hashtable = EnsureObjectsTable();
349 ArrayList arrayList = EnsureObjectsArray();
350 object key = ((DictionaryEntry)arrayList[index]).Key;
351 arrayList.RemoveAt(index);
352 hashtable.Remove(key);
353 }
static string OrderedDictionary_ReadOnly
Definition SR.cs:32
Definition SR.cs:7

References System.Collections.Specialized.OrderedDictionary._readOnly, System.Collections.Specialized.OrderedDictionary.Count, System.Runtime.Serialization.Dictionary, System.Collections.Specialized.OrderedDictionary.EnsureObjectsArray(), System.Collections.Specialized.OrderedDictionary.EnsureObjectsTable(), System.index, System.key, System.SR.OrderedDictionary_ReadOnly, and System.Collections.Hashtable.Remove().