Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AttributeAccessor.cs
Go to the documentation of this file.
2
4
5internal sealed class AttributeAccessor : Accessor
6{
7 private bool _isSpecial;
8
9 private bool _isList;
10
12
13 internal bool IsList
14 {
15 get
16 {
17 return _isList;
18 }
19 set
20 {
21 _isList = value;
22 }
23 }
24
25 internal void CheckSpecial()
26 {
27 int num = Name.LastIndexOf(':');
28 if (num >= 0)
29 {
30 if (!Name.StartsWith("xml:", StringComparison.Ordinal))
31 {
33 }
34 Name = Name.Substring("xml:".Length);
35 base.Namespace = "http://www.w3.org/XML/1998/namespace";
36 _isSpecial = true;
37 }
38 else if (base.Namespace == "http://www.w3.org/XML/1998/namespace")
39 {
40 _isSpecial = true;
41 }
42 else
43 {
44 _isSpecial = false;
45 }
46 if (_isSpecial)
47 {
48 base.Form = XmlSchemaForm.Qualified;
49 }
50 }
51}
static string Xml_InvalidNameChars
Definition SR.cs:350
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7