Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlArrayItemAttribute.cs
Go to the documentation of this file.
3
5
6[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true)]
8{
9 private string _elementName;
10
11 private Type _type;
12
13 private string _ns;
14
15 private string _dataType;
16
17 private bool _nullable;
18
19 private bool _nullableSpecified;
20
22
23 private int _nestingLevel;
24
25 public Type? Type
26 {
27 get
28 {
29 return _type;
30 }
31 set
32 {
33 _type = value;
34 }
35 }
36
37 public string ElementName
38 {
39 get
40 {
41 if (_elementName != null)
42 {
43 return _elementName;
44 }
45 return string.Empty;
46 }
48 set
49 {
51 }
52 }
53
54 public string? Namespace
55 {
56 get
57 {
58 return _ns;
59 }
60 set
61 {
62 _ns = value;
63 }
64 }
65
66 public int NestingLevel
67 {
68 get
69 {
70 return _nestingLevel;
71 }
72 set
73 {
75 }
76 }
77
78 public string DataType
79 {
80 get
81 {
82 if (_dataType != null)
83 {
84 return _dataType;
85 }
86 return string.Empty;
87 }
89 set
90 {
92 }
93 }
94
95 public bool IsNullable
96 {
97 get
98 {
99 return _nullable;
100 }
101 set
102 {
104 _nullableSpecified = true;
105 }
106 }
107
109
111 {
112 get
113 {
114 return _form;
115 }
116 set
117 {
118 _form = value;
119 }
120 }
121
123 {
124 }
125
126 public XmlArrayItemAttribute(string? elementName)
127 {
128 _elementName = elementName;
129 }
130
132 {
133 _type = type;
134 }
135
136 public XmlArrayItemAttribute(string? elementName, Type? type)
137 {
138 _elementName = elementName;
139 _type = type;
140 }
141
143 {
144 return IsNullableSpecified;
145 }
146}
XmlArrayItemAttribute(string? elementName, Type? type)