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

◆ GetElement()

WeakReference< XmlElement > System.Xml.XmlDocument.GetElement ( ArrayList elementList,
XmlElement elem )
inlineprivate

Definition at line 542 of file XmlDocument.cs.

543 {
545 foreach (WeakReference<XmlElement> element in elementList)
546 {
547 if (!element.TryGetTarget(out var target))
548 {
549 arrayList.Add(element);
550 }
551 else if (target == elem)
552 {
553 return element;
554 }
555 }
557 {
559 }
560 return null;
561 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.item, and System.Collections.Generic.Dictionary< TKey, TValue >.Remove().

Referenced by System.Xml.XmlDocument.AddElementWithId(), and System.Xml.XmlDocument.RemoveElementWithId().