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

◆ WriteEndAttributeAsyncImpl()

async Task System.Xml.XmlBaseWriter.WriteEndAttributeAsyncImpl ( )
inlineprivateinherited

Definition at line 1075 of file XmlBaseWriter.cs.

1076 {
1078 try
1079 {
1080 if (_isXmlAttribute)
1081 {
1082 if (_attributeLocalName == "lang")
1083 {
1085 }
1086 else if (_attributeLocalName == "space")
1087 {
1088 if (_attributeValue == "preserve")
1089 {
1090 _nsMgr.AddSpaceAttribute(XmlSpace.Preserve);
1091 }
1092 else
1093 {
1094 if (!(_attributeValue == "default"))
1095 {
1097 }
1098 _nsMgr.AddSpaceAttribute(XmlSpace.Default);
1099 }
1100 }
1101 _isXmlAttribute = false;
1102 _attributeLocalName = null;
1103 _attributeValue = null;
1104 }
1106 {
1108 _isXmlnsAttribute = false;
1109 _attributeLocalName = null;
1110 _attributeValue = null;
1111 }
1112 else
1113 {
1115 }
1116 }
1117 finally
1118 {
1119 _writeState = WriteState.Element;
1120 }
1121 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlInvalidXmlSpace
Definition SR.cs:454
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
void AddNamespaceIfNotDeclared(string prefix, string uri, XmlDictionaryString uriDictionaryString)
readonly NamespaceManager _nsMgr
virtual Task WriteEndAttributeAsync()

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.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlBaseWriter.FlushBase64Async(), System.SR.Format(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlNodeWriter.WriteEndAttributeAsync(), and System.SR.XmlInvalidXmlSpace.

Referenced by System.Xml.XmlBaseWriter.WriteEndAttributeAsync().