Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlIgnoreNamespaceReader.cs
Go to the documentation of this file.
2using System.Xml;
3
4namespace System.Data;
5
7{
9
15
16 public override bool MoveToFirstAttribute()
17 {
18 if (base.MoveToFirstAttribute())
19 {
20 if (_namespacesToIgnore.Contains(NamespaceURI) || (NamespaceURI == "http://www.w3.org/XML/1998/namespace" && LocalName != "lang"))
21 {
22 return MoveToNextAttribute();
23 }
24 return true;
25 }
26 return false;
27 }
28
29 public override bool MoveToNextAttribute()
30 {
31 bool result;
32 bool flag;
33 do
34 {
35 result = false;
36 flag = false;
37 if (base.MoveToNextAttribute())
38 {
39 result = true;
40 if (_namespacesToIgnore.Contains(NamespaceURI) || (NamespaceURI == "http://www.w3.org/XML/1998/namespace" && LocalName != "lang"))
41 {
42 flag = true;
43 }
44 }
45 }
46 while (flag);
47 return result;
48 }
49}
XmlIgnoreNamespaceReader(XmlDocument xdoc, string[] namespacesToIgnore)
override string LocalName
override string NamespaceURI