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

◆ GetNamespaceOfPrefixInScope()

string System.Xml.Linq.XElement.GetNamespaceOfPrefixInScope ( string prefix,
XElement outOfScope )
inlineprivate

Definition at line 1095 of file XElement.cs.

1096 {
1098 {
1099 XAttribute xAttribute = xElement.lastAttr;
1100 if (xAttribute != null)
1101 {
1102 do
1103 {
1104 xAttribute = xAttribute.next;
1105 if (xAttribute.IsNamespaceDeclaration && xAttribute.Name.LocalName == prefix)
1106 {
1107 return xAttribute.Value;
1108 }
1109 }
1110 while (xAttribute != xElement.lastAttr);
1111 }
1112 }
1113 return null;
1114 }

References System.Xml.Linq.XElement.XElement(), System.Xml.Dictionary, and System.prefix.

Referenced by System.Xml.Linq.XElement.GetDefaultNamespace(), System.Xml.Linq.XElement.GetNamespaceOfPrefix(), and System.Xml.Linq.XElement.GetPrefixOfNamespace().