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

◆ RemoveAttributes()

void System.Xml.Linq.XElement.RemoveAttributes ( )
inline

Definition at line 477 of file XElement.cs.

478 {
479 if (SkipNotify())
480 {
482 return;
483 }
484 while (lastAttr != null)
485 {
486 XAttribute xAttribute = lastAttr.next;
487 NotifyChanging(xAttribute, XObjectChangeEventArgs.Remove);
488 if (lastAttr == null || xAttribute != lastAttr.next)
489 {
491 }
492 if (xAttribute != lastAttr)
493 {
495 }
496 else
497 {
498 lastAttr = null;
499 }
500 xAttribute.parent = null;
501 xAttribute.next = null;
502 NotifyChanged(xAttribute, XObjectChangeEventArgs.Remove);
503 }
504 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
static string InvalidOperation_ExternalCode
Definition SR.cs:50
Definition SR.cs:7
bool NotifyChanging(object sender, XObjectChangeEventArgs e)
Definition XObject.cs:428
bool NotifyChanged(object sender, XObjectChangeEventArgs e)
Definition XObject.cs:399

References System.Xml.Dictionary, System.SR.InvalidOperation_ExternalCode, System.Xml.Linq.XElement.lastAttr, System.Xml.Linq.XAttribute.next, System.Xml.Linq.XObject.NotifyChanged(), System.Xml.Linq.XObject.NotifyChanging(), System.Xml.Linq.XObjectChangeEventArgs.Remove, System.Xml.Linq.XElement.RemoveAttributesSkipNotify(), and System.Xml.Linq.XObject.SkipNotify().

Referenced by System.Xml.Linq.XElement.RemoveAll(), and System.Xml.Linq.XElement.ReplaceAttributes().