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

◆ GetNamespaceURI()

string System.Xml.Linq.XNodeReader.GetNamespaceURI ( )
inlineprivate

Definition at line 423 of file XNodeReader.cs.

424 {
425 if (!IsInteractive)
426 {
427 return string.Empty;
428 }
429 if (_source is XElement xElement)
430 {
431 return xElement.Name.NamespaceName;
432 }
433 if (_source is XAttribute xAttribute)
434 {
435 string namespaceName = xAttribute.Name.NamespaceName;
436 if (namespaceName.Length == 0 && xAttribute.Name.LocalName == "xmlns")
437 {
438 return "http://www.w3.org/2000/xmlns/";
439 }
440 return namespaceName;
441 }
442 return string.Empty;
443 }

References System.Xml.Linq.XNodeReader._source, System.Xml.Dictionary, and System.Xml.Linq.XNodeReader.IsInteractive.