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

◆ WriteEndElement()

override void System.Xml.XmlBaseWriter.WriteEndElement ( )
inlineinherited

Definition at line 1330 of file XmlBaseWriter.cs.

1331 {
1332 if (IsClosed)
1333 {
1334 ThrowClosed();
1335 }
1336 if (_depth == 0)
1337 {
1339 }
1340 if (_writeState == WriteState.Attribute)
1341 {
1343 }
1344 FlushBase64();
1345 if (_writeState == WriteState.Element)
1346 {
1349 }
1350 else
1351 {
1352 Element element = _elements[_depth];
1353 _writer.WriteEndElement(element.Prefix, element.LocalName);
1354 }
1355 ExitScope();
1356 _writeState = WriteState.Content;
1357 }
static CultureInfo InvariantCulture
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlInvalidDepth
Definition SR.cs:424
Definition SR.cs:7
void DeclareNamespaces(XmlNodeWriter writer)
override void WriteEndAttribute()
readonly NamespaceManager _nsMgr
void WriteEndStartElement(bool isEmpty)
void WriteEndElement(string prefix, string localName)

References System.Xml.XmlBaseWriter.NamespaceManager._depth, System.Xml.XmlBaseWriter._elements, System.Xml.XmlBaseWriter._nsMgr, System.Xml.XmlBaseWriter._writer, System.Xml.XmlBaseWriter._writeState, System.Xml.XmlBaseWriter.NamespaceManager.DeclareNamespaces(), System.Xml.Dictionary, System.Xml.XmlBaseWriter.NamespaceManager.ExitScope(), System.Xml.XmlBaseWriter.FlushBase64(), System.SR.Format(), System.Globalization.CultureInfo.InvariantCulture, System.Xml.XmlBaseWriter.IsClosed, System.Xml.XmlBaseWriter.Element.LocalName, System.Xml.XmlBaseWriter.Element.Prefix, System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlBaseWriter.WriteEndAttribute(), System.Xml.XmlNodeWriter.WriteEndElement(), System.Xml.XmlNodeWriter.WriteEndStartElement(), and System.SR.XmlInvalidDepth.

Referenced by System.Xml.XmlBaseWriter.FinishDocument(), System.Xml.XmlBaseWriter.WriteFullEndElement(), System.Xml.XmlBinaryWriter.WriteStartArray(), and System.Xml.XmlBinaryWriter.WriteStartArray().