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

◆ Remove()

void System.Collections.Specialized.OrderedDictionary.Remove ( object key)
inline

Implements System.Collections.IDictionary.

Definition at line 355 of file OrderedDictionary.cs.

356 {
357 if (_readOnly)
358 {
359 throw new NotSupportedException(System.SR.OrderedDictionary_ReadOnly);
360 }
361 if (key == null)
362 {
363 throw new ArgumentNullException("key");
364 }
365 int num = IndexOfKey(key);
366 if (num >= 0)
367 {
368 Hashtable hashtable = EnsureObjectsTable();
369 ArrayList arrayList = EnsureObjectsArray();
370 hashtable.Remove(key);
371 arrayList.RemoveAt(num);
372 }
373 }
static string OrderedDictionary_ReadOnly
Definition SR.cs:32
Definition SR.cs:7

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

Referenced by System.ComponentModel.TypeDescriptor.PipelineFilter().