Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlRootAttribute.cs
Go to the documentation of this file.
2
4
7{
8 private string _elementName;
9
10 private string _ns;
11
12 private string _dataType;
13
14 private bool _nullable = true;
15
16 private bool _nullableSpecified;
17
18 public string ElementName
19 {
20 get
21 {
22 if (_elementName != null)
23 {
24 return _elementName;
25 }
26 return string.Empty;
27 }
28 set
29 {
31 }
32 }
33
34 public string? Namespace
35 {
36 get
37 {
38 return _ns;
39 }
40 set
41 {
42 _ns = value;
43 }
44 }
45
46 public string DataType
47 {
48 get
49 {
50 if (_dataType != null)
51 {
52 return _dataType;
53 }
54 return string.Empty;
55 }
57 set
58 {
60 }
61 }
62
63 public bool IsNullable
64 {
65 get
66 {
67 return _nullable;
68 }
69 set
70 {
72 _nullableSpecified = true;
73 }
74 }
75
77
78 internal string Key => ((_ns == null) ? string.Empty : _ns) + ":" + ElementName + ":" + _nullable;
79
81 {
82 }
83
84 public XmlRootAttribute(string elementName)
85 {
86 _elementName = elementName;
87 }
88
89 internal bool GetIsNullableSpecified()
90 {
92 }
93
94 internal string GetKey()
95 {
96 return Key;
97 }
98}