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

◆ WriteBoundElementTo()

static void System.Xml.XmlBoundElement.WriteBoundElementTo ( DataPointer dp,
XmlWriter w )
inlinestaticprivate

Definition at line 291 of file XmlBoundElement.cs.

292 {
293 w.WriteStartElement(dp.Prefix, dp.LocalName, dp.NamespaceURI);
294 int attributeCount = dp.AttributeCount;
295 if (attributeCount > 0)
296 {
297 for (int i = 0; i < attributeCount; i++)
298 {
299 dp.MoveToAttribute(i);
300 WriteTo(dp, w);
301 dp.MoveToOwnerElement();
302 }
303 }
305 if (dp.IsEmptyElement)
306 {
307 w.WriteEndElement();
308 }
309 else
310 {
311 w.WriteFullEndElement();
312 }
313 }
override void WriteTo(XmlWriter w)
static void WriteBoundElementContentTo(DataPointer dp, XmlWriter w)

References System.Xml.Dictionary, System.Xml.XmlBoundElement.WriteBoundElementContentTo(), and System.Xml.XmlBoundElement.WriteTo().

Referenced by System.Xml.XmlBoundElement.WriteTo().