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

◆ XmlLang

override string System.Xml.Linq.XNodeReader.XmlLang
get

Definition at line 248 of file XNodeReader.cs.

249 {
250 get
251 {
252 if (!IsInteractive)
253 {
254 return string.Empty;
255 }
256 XElement xElement = GetElementInScope();
257 if (xElement != null)
258 {
259 XName name = XNamespace.Xml.GetName("lang");
260 do
261 {
262 XAttribute xAttribute = xElement.Attribute(name);
263 if (xAttribute != null)
264 {
265 return xAttribute.Value;
266 }
267 xElement = xElement.parent as XElement;
268 }
269 while (xElement != null);
270 }
271 return string.Empty;
272 }
273 }