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

◆ StartElementAsync()

async Task< string > System.Xml.XmlBaseWriter.StartElementAsync ( string prefix,
string localName,
string ns,
XmlDictionaryString xNs )
inlineprivateinherited

Definition at line 1277 of file XmlBaseWriter.cs.

1278 {
1281 Element element = EnterScope();
1282 if (ns == null)
1283 {
1284 if (prefix == null)
1285 {
1286 prefix = string.Empty;
1287 }
1289 if (ns == null)
1290 {
1292 }
1293 }
1294 else if (prefix == null)
1295 {
1297 if (prefix == null)
1298 {
1299 prefix = string.Empty;
1300 _nsMgr.AddNamespace(string.Empty, ns, xNs);
1301 }
1302 }
1303 else
1304 {
1306 }
1308 element.LocalName = localName;
1309 return prefix;
1310 }
static string XmlUndefinedPrefix
Definition SR.cs:506
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
string AddNamespace(string uri, XmlDictionaryString uriDictionaryString)
void AddNamespaceIfNotDeclared(string prefix, string uri, XmlDictionaryString uriDictionaryString)
async Task AutoCompleteAsync(WriteState writeState)
readonly NamespaceManager _nsMgr

References System.Xml.XmlBaseWriter._nsMgr, System.Xml.XmlBaseWriter.NamespaceManager.AddNamespace(), System.Xml.XmlBaseWriter.NamespaceManager.AddNamespaceIfNotDeclared(), System.Xml.ArgumentException, System.Xml.XmlBaseWriter.AutoCompleteAsync(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlBaseWriter.NamespaceManager.EnterScope(), System.Xml.XmlBaseWriter.FlushBase64Async(), System.SR.Format(), System.Xml.XmlBaseWriter.NamespaceManager.LookupNamespace(), System.Xml.XmlBaseWriter.NamespaceManager.LookupPrefix(), System.prefix, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), and System.SR.XmlUndefinedPrefix.

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