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

◆ WriteLocalNamespacesAsync()

async Task System.Xml.XmlWriter.WriteLocalNamespacesAsync ( XPathNavigator nsNav)
inlineprivateinherited

Definition at line 1019 of file XmlWriter.cs.

1020 {
1021 string prefix = nsNav.LocalName;
1022 string ns = nsNav.Value;
1023 if (nsNav.MoveToNextNamespace(XPathNamespaceScope.Local))
1024 {
1026 }
1027 if (prefix.Length == 0)
1028 {
1029 await WriteAttributeStringAsync(string.Empty, "xmlns", "http://www.w3.org/2000/xmlns/", ns).ConfigureAwait(continueOnCapturedContext: false);
1030 }
1031 else
1032 {
1033 await WriteAttributeStringAsync("xmlns", prefix, "http://www.w3.org/2000/xmlns/", ns).ConfigureAwait(continueOnCapturedContext: false);
1034 }
1035 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
Task WriteAttributeStringAsync(string? prefix, string localName, string? ns, string? value)
Definition XmlWriter.cs:611
async Task WriteLocalNamespacesAsync(XPathNavigator nsNav)

References System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.prefix, System.Xml.XmlWriter.WriteAttributeStringAsync(), and System.Xml.XmlWriter.WriteLocalNamespacesAsync().

Referenced by System.Xml.XmlWriter.WriteLocalNamespacesAsync(), and System.Xml.XmlWriter.WriteNodeAsync().