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

◆ WriteEndAttribute()

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

Definition at line 1006 of file XmlBaseWriter.cs.

1007 {
1008 if (IsClosed)
1009 {
1010 ThrowClosed();
1011 }
1012 if (_writeState != WriteState.Attribute)
1013 {
1015 }
1016 FlushBase64();
1017 try
1018 {
1019 if (_isXmlAttribute)
1020 {
1021 if (_attributeLocalName == "lang")
1022 {
1024 }
1025 else if (_attributeLocalName == "space")
1026 {
1027 if (_attributeValue == "preserve")
1028 {
1029 _nsMgr.AddSpaceAttribute(XmlSpace.Preserve);
1030 }
1031 else
1032 {
1033 if (!(_attributeValue == "default"))
1034 {
1036 }
1037 _nsMgr.AddSpaceAttribute(XmlSpace.Default);
1038 }
1039 }
1040 _isXmlAttribute = false;
1041 _attributeLocalName = null;
1042 _attributeValue = null;
1043 }
1045 {
1047 _isXmlnsAttribute = false;
1048 _attributeLocalName = null;
1049 _attributeValue = null;
1050 }
1051 else
1052 {
1054 }
1055 }
1056 finally
1057 {
1058 _writeState = WriteState.Element;
1059 }
1060 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlInvalidWriteState
Definition SR.cs:450
static string XmlInvalidXmlSpace
Definition SR.cs:454
Definition SR.cs:7
void AddNamespaceIfNotDeclared(string prefix, string uri, XmlDictionaryString uriDictionaryString)
readonly NamespaceManager _nsMgr

References System.Xml.XmlBaseWriter._attributeLocalName, System.Xml.XmlBaseWriter._attributeValue, System.Xml.XmlBaseWriter._isXmlAttribute, System.Xml.XmlBaseWriter._isXmlnsAttribute, System.Xml.XmlBaseWriter._nsMgr, System.Xml.XmlBaseWriter._writer, System.Xml.XmlBaseWriter._writeState, System.Xml.XmlBaseWriter.NamespaceManager.AddLangAttribute(), System.Xml.XmlBaseWriter.NamespaceManager.AddNamespaceIfNotDeclared(), System.Xml.XmlBaseWriter.NamespaceManager.AddSpaceAttribute(), System.Xml.ArgumentException, System.Xml.XmlBaseWriter.FlushBase64(), System.SR.Format(), System.Xml.XmlBaseWriter.IsClosed, System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlNodeWriter.WriteEndAttribute(), System.SR.XmlInvalidWriteState, and System.SR.XmlInvalidXmlSpace.

Referenced by System.Xml.XmlBaseWriter.FinishDocument(), System.Xml.XmlBaseWriter.StartAttribute(), System.Xml.XmlBaseWriter.WriteEndElement(), and System.Xml.XmlBaseWriter.WriteFullEndElement().