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

◆ GetXmlString()

string System.Xml.Linq.XStreamingElement.GetXmlString ( SaveOptions o)
inlineprivate

Definition at line 140 of file XStreamingElement.cs.

141 {
143 XmlWriterSettings xmlWriterSettings = new XmlWriterSettings();
145 if ((o & SaveOptions.DisableFormatting) == 0)
146 {
148 }
149 if ((o & SaveOptions.OmitDuplicateNamespaces) != 0)
150 {
151 xmlWriterSettings.NamespaceHandling |= NamespaceHandling.OmitDuplicates;
152 }
153 using (XmlWriter writer = XmlWriter.Create(stringWriter, xmlWriterSettings))
154 {
156 }
157 return stringWriter.ToString();
158 }
static CultureInfo InvariantCulture

References System.Xml.XmlWriter.Create(), System.Xml.Dictionary, System.Globalization.CultureInfo.InvariantCulture, System.writer, and System.Xml.Linq.XStreamingElement.WriteTo().

Referenced by System.Xml.Linq.XStreamingElement.ToString(), and System.Xml.Linq.XStreamingElement.ToString().