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

◆ WriteEndNamespaceDeclaration()

override void System.Xml.DocumentXmlWriter.WriteEndNamespaceDeclaration ( )
inlinepackagevirtual

Reimplemented from System.Xml.XmlRawWriter.

Definition at line 311 of file DocumentXmlWriter.cs.

312 {
313 VerifyState(Method.WriteEndNamespaceDeclaration);
314 if (!(_write is XmlAttribute xmlAttribute))
315 {
316 throw new InvalidOperationException();
317 }
318 if (!xmlAttribute.HasChildNodes)
319 {
320 XmlNode node = _document.CreateTextNode(string.Empty);
322 }
323 _write = xmlAttribute.OwnerElement;
324 }
readonly XmlDocument _document
void AddChild(XmlNode node, XmlNode parent)
virtual XmlText CreateTextNode(string? text)

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

Referenced by System.Xml.DocumentXmlWriter.WriteNamespaceDeclaration().