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

◆ CloneTreeInternal()

XmlNode System.Xml.XmlDataDocument.CloneTreeInternal ( DataPointer other)
inlineprivate

Definition at line 791 of file XmlDataDocument.cs.

792 {
794 DataPointer dataPointer = new DataPointer(other);
795 try
796 {
797 dataPointer.AddPointer();
798 if (xmlNode.NodeType == XmlNodeType.Element)
799 {
800 int attributeCount = dataPointer.AttributeCount;
801 for (int i = 0; i < attributeCount; i++)
802 {
803 dataPointer.MoveToOwnerElement();
804 if (dataPointer.MoveToAttribute(i))
805 {
806 xmlNode.Attributes.Append((XmlAttribute)CloneTreeInternal(dataPointer));
807 }
808 }
809 dataPointer.MoveTo(other);
810 }
811 bool flag = dataPointer.MoveToFirstChild();
812 while (flag)
813 {
815 flag = dataPointer.MoveToNextSibling();
816 }
817 return xmlNode;
818 }
819 finally
820 {
821 dataPointer.SetNoLongerUse();
822 }
823 }
XmlNode CloneTreeInternal(DataPointer other)
override XmlNode CloneNode(bool deep)

References System.Xml.XmlDataDocument.CloneNode(), System.Xml.XmlDataDocument.CloneTreeInternal(), System.Xml.Dictionary, and System.other.

Referenced by System.Xml.XmlDataDocument.CloneTree(), and System.Xml.XmlDataDocument.CloneTreeInternal().