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

◆ GetPrefix()

string System.Xml.XPath.XNodeNavigator.GetPrefix ( )
inlineprivate

Definition at line 233 of file XNodeNavigator.cs.

234 {
236 {
237 string prefixOfNamespace = xElement.GetPrefixOfNamespace(xElement.Name.Namespace);
238 if (prefixOfNamespace != null)
239 {
240 return prefixOfNamespace;
241 }
242 return string.Empty;
243 }
245 {
246 if (_parent != null)
247 {
248 return string.Empty;
249 }
250 string prefixOfNamespace2 = xAttribute.GetPrefixOfNamespace(xAttribute.Name.Namespace);
251 if (prefixOfNamespace2 != null)
252 {
253 return prefixOfNamespace2;
254 }
255 }
256 return string.Empty;
257 }

References System.Xml.XPath.XNodeNavigator._parent, System.Xml.XPath.XNodeNavigator._source, and System.Xml.Dictionary.