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

◆ GetPrefix()

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

Definition at line 445 of file XNodeReader.cs.

446 {
447 if (!IsInteractive)
448 {
449 return string.Empty;
450 }
451 if (_source is XElement xElement)
452 {
453 string prefixOfNamespace = xElement.GetPrefixOfNamespace(xElement.Name.Namespace);
454 if (prefixOfNamespace != null)
455 {
456 return prefixOfNamespace;
457 }
458 return string.Empty;
459 }
460 if (_source is XAttribute xAttribute)
461 {
462 string prefixOfNamespace2 = xAttribute.GetPrefixOfNamespace(xAttribute.Name.Namespace);
463 if (prefixOfNamespace2 != null)
464 {
465 return prefixOfNamespace2;
466 }
467 }
468 return string.Empty;
469 }

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