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

◆ NotifyChanged()

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

Definition at line 399 of file XObject.cs.

400 {
401 bool result = false;
402 XObject xObject = this;
403 while (true)
404 {
405 if (xObject != null && xObject.annotations == null)
406 {
407 xObject = xObject.parent;
408 continue;
409 }
410 if (xObject == null)
411 {
412 break;
413 }
414 XObjectChangeAnnotation xObjectChangeAnnotation = xObject.Annotation<XObjectChangeAnnotation>();
415 if (xObjectChangeAnnotation != null)
416 {
417 result = true;
418 if (xObjectChangeAnnotation.changed != null)
419 {
420 xObjectChangeAnnotation.changed(sender, e);
421 }
422 }
423 xObject = xObject.parent;
424 }
425 return result;
426 }

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().