Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlArrayAttribute.cs
Go to the documentation of this file.
3
5
6[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false)]
8{
9 private string _elementName;
10
11 private string _ns;
12
13 private bool _nullable;
14
16
17 private int _order = -1;
18
19 public string ElementName
20 {
21 get
22 {
23 if (_elementName != null)
24 {
25 return _elementName;
26 }
27 return string.Empty;
28 }
30 set
31 {
33 }
34 }
35
36 public string? Namespace
37 {
38 get
39 {
40 return _ns;
41 }
42 set
43 {
44 _ns = value;
45 }
46 }
47
48 public bool IsNullable
49 {
50 get
51 {
52 return _nullable;
53 }
54 set
55 {
57 }
58 }
59
61 {
62 get
63 {
64 return _form;
65 }
66 set
67 {
68 _form = value;
69 }
70 }
71
72 public int Order
73 {
74 get
75 {
76 return _order;
77 }
78 set
79 {
80 if (value < 0)
81 {
83 }
84 _order = value;
85 }
86 }
87
89 {
90 }
91
92 public XmlArrayAttribute(string? elementName)
93 {
94 _elementName = elementName;
95 }
96}
static string XmlDisallowNegativeValues
Definition SR.cs:1804
Definition SR.cs:7