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

◆ CanInsertAfter()

override bool System.Xml.XmlDocument.CanInsertAfter ( XmlNode newChild,
XmlNode refChild )
inlinepackagevirtual

Reimplemented from System.Xml.XmlNode.

Definition at line 722 of file XmlDocument.cs.

723 {
724 if (refChild == null)
725 {
727 }
728 if (refChild == null)
729 {
730 return true;
731 }
732 switch (newChild.NodeType)
733 {
734 case XmlNodeType.ProcessingInstruction:
735 case XmlNodeType.Comment:
736 case XmlNodeType.Whitespace:
737 case XmlNodeType.SignificantWhitespace:
738 return true;
739 case XmlNodeType.DocumentType:
740 return !HasNodeTypeInPrevSiblings(XmlNodeType.Element, refChild);
741 case XmlNodeType.Element:
742 return !HasNodeTypeInNextSiblings(XmlNodeType.DocumentType, refChild.NextSibling);
743 default:
744 return false;
745 }
746 }
bool HasNodeTypeInPrevSiblings(XmlNodeType nt, XmlNode refNode)
bool HasNodeTypeInNextSiblings(XmlNodeType nt, XmlNode refNode)
virtual ? XmlNode LastChild
Definition XmlNode.cs:122

References System.Xml.XmlDocument.HasNodeTypeInNextSiblings(), System.Xml.XmlDocument.HasNodeTypeInPrevSiblings(), and System.Xml.XmlNode.LastChild.

Referenced by System.Xml.XmlDocument.AppendChildForLoad().