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

◆ AddElementWithId()

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

Definition at line 563 of file XmlDocument.cs.

564 {
565 if (_htElementIdMap == null || !_htElementIdMap.Contains(id))
566 {
567 if (_htElementIdMap == null)
568 {
570 }
574 }
575 else
576 {
578 if (GetElement(arrayList2, elem) == null)
579 {
581 }
582 }
583 }
void Add(TKey key, TValue value)
virtual bool Contains(object key)
Definition Hashtable.cs:719
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
WeakReference< XmlElement > GetElement(ArrayList elementList, XmlElement elem)

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

Referenced by System.Xml.XmlAttributeCollection.InsertParentIntoElementIdAttrMap().