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

◆ WriteXmlDeclaration() [2/2]

override void System.Xml.DocumentXmlWriter.WriteXmlDeclaration ( XmlStandalone standalone)
inlinepackagevirtual

Reimplemented from System.Xml.XmlRawWriter.

Definition at line 190 of file DocumentXmlWriter.cs.

191 {
192 VerifyState(Method.WriteXmlDeclaration);
193 if (standalone != 0)
194 {
195 XmlNode node = _document.CreateXmlDeclaration("1.0", string.Empty, (standalone == XmlStandalone.Yes) ? "yes" : "no");
197 }
198 }
readonly XmlDocument _document
void AddChild(XmlNode node, XmlNode parent)
virtual XmlDeclaration CreateXmlDeclaration(string version, string? encoding, string? standalone)

References System.Xml.DocumentXmlWriter._document, System.Xml.DocumentXmlWriter._write, System.Xml.DocumentXmlWriter.AddChild(), System.Xml.XmlDocument.CreateXmlDeclaration(), and System.Xml.DocumentXmlWriter.VerifyState().