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

◆ BaseRemove()

void System.Collections.Specialized.NameObjectCollectionBase.BaseRemove ( string? name)
inlineprotectedinherited

Definition at line 303 of file NameObjectCollectionBase.cs.

304 {
305 if (_readOnly)
306 {
307 throw new NotSupportedException(System.SR.CollectionReadOnly);
308 }
309 if (name != null)
310 {
311 _entriesTable.Remove(name);
312 for (int num = _entriesArray.Count - 1; num >= 0; num--)
313 {
314 if (_keyComparer.Equals(name, BaseGetKey(num)))
315 {
317 }
318 }
319 }
320 else
321 {
322 _nullKeyEntry = null;
323 for (int num2 = _entriesArray.Count - 1; num2 >= 0; num2--)
324 {
325 if (BaseGetKey(num2) == null)
326 {
328 }
329 }
330 }
331 _version++;
332 }
virtual void RemoveAt(int index)
virtual void Remove(object key)
static string CollectionReadOnly
Definition SR.cs:28
Definition SR.cs:7
new bool Equals(object? x, object? y)

References System.Collections.Specialized.NameObjectCollectionBase._entriesArray, System.Collections.Specialized.NameObjectCollectionBase._entriesTable, System.Collections.Specialized.NameObjectCollectionBase._keyComparer, System.Collections.Specialized.NameObjectCollectionBase._nullKeyEntry, System.Collections.Specialized.NameObjectCollectionBase._readOnly, System.Collections.Specialized.NameObjectCollectionBase._version, System.Collections.Specialized.NameObjectCollectionBase.BaseGetKey(), System.SR.CollectionReadOnly, System.Collections.ArrayList.Count, System.Runtime.Serialization.Dictionary, System.Collections.IEqualityComparer.Equals(), System.Collections.Hashtable.Remove(), and System.Collections.ArrayList.RemoveAt().

Referenced by System.Collections.Specialized.NameValueCollection.Remove().