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

◆ CloneNode() [1/2]

override XmlNode System.Xml.XmlDataDocument.CloneNode ( bool deep)
inline

Definition at line 826 of file XmlDataDocument.cs.

827 {
831 if (deep)
832 {
833 DataPointer dataPointer = new DataPointer(this, this);
834 try
835 {
836 dataPointer.AddPointer();
837 bool flag = dataPointer.MoveToFirstChild();
838 while (flag)
839 {
840 XmlNode newChild = ((dataPointer.NodeType != XmlNodeType.Element) ? xmlDataDocument.CloneNode(dataPointer) : xmlDataDocument.CloneTree(dataPointer));
841 xmlDataDocument.AppendChild(newChild);
842 flag = dataPointer.MoveToNextSibling();
843 }
844 }
845 finally
846 {
847 dataPointer.SetNoLongerUse();
848 }
849 }
850 return xmlDataDocument;
851 }
virtual DataSet Clone()
Definition DataSet.cs:977

References System.Xml.XmlDataDocument.XmlDataDocument(), System.Xml.XmlDataDocument._dataSet, System.Data.DataSet.Clone(), System.Xml.Dictionary, and System.Data.DataSet.EnforceConstraints.

Referenced by System.Xml.XmlDataDocument.CloneTreeInternal().