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

◆ NotifyChanging()

bool System.Xml.Linq.XObject.NotifyChanging ( object sender,
XObjectChangeEventArgs e )
inlinepackageinherited

Definition at line 428 of file XObject.cs.

429 {
430 bool result = false;
431 XObject xObject = this;
432 while (true)
433 {
434 if (xObject != null && xObject.annotations == null)
435 {
436 xObject = xObject.parent;
437 continue;
438 }
439 if (xObject == null)
440 {
441 break;
442 }
443 XObjectChangeAnnotation xObjectChangeAnnotation = xObject.Annotation<XObjectChangeAnnotation>();
444 if (xObjectChangeAnnotation != null)
445 {
446 result = true;
447 if (xObjectChangeAnnotation.changing != null)
448 {
449 xObjectChangeAnnotation.changing(sender, e);
450 }
451 }
452 xObject = xObject.parent;
453 }
454 return result;
455 }

Referenced by System.Xml.Linq.Inserter.Add(), System.Xml.Linq.XContainer.AddString(), System.Xml.Linq.XElement.AppendAttribute(), System.Xml.Linq.XContainer.AppendNode(), System.Xml.Linq.Inserter.InsertNode(), System.Xml.Linq.XElement.RemoveAttribute(), System.Xml.Linq.XElement.RemoveAttributes(), System.Xml.Linq.XContainer.RemoveNode(), and System.Xml.Linq.XContainer.RemoveNodes().