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

◆ RemoveElementWithId()

void System.Xml.XmlDocument.RemoveElementWithId ( string id,
XmlElement elem )
inlinepackage

Definition at line 585 of file XmlDocument.cs.

586 {
587 if (_htElementIdMap == null || !_htElementIdMap.Contains(id))
588 {
589 return;
590 }
593 if (element != null)
594 {
595 arrayList.Remove(element);
596 if (arrayList.Count == 0)
597 {
599 }
600 }
601 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
virtual bool Contains(object key)
Definition Hashtable.cs:719
virtual void Remove(object key)
WeakReference< XmlElement > GetElement(ArrayList elementList, XmlElement elem)

References System.Xml.XmlDocument._htElementIdMap, System.Collections.Hashtable.Contains(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.XmlDocument.GetElement(), System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), and System.Collections.Hashtable.Remove().

Referenced by System.Xml.XmlAttributeCollection.RemoveParentFromElementIdAttrMap(), and System.Xml.XmlAttributeCollection.ResetParentInElementIdAttrMap().