Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlAnyElementAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true)]
7{
8 private string _name;
9
10 private string _ns;
11
12 private int _order = -1;
13
14 private bool _nsSpecified;
15
16 public string Name
17 {
18 get
19 {
20 if (_name != null)
21 {
22 return _name;
23 }
24 return string.Empty;
25 }
27 set
28 {
29 _name = value;
30 }
31 }
32
33 public string? Namespace
34 {
35 get
36 {
37 return _ns;
38 }
39 set
40 {
41 _ns = value;
42 _nsSpecified = true;
43 }
44 }
45
46 public int Order
47 {
48 get
49 {
50 return _order;
51 }
52 set
53 {
54 if (value < 0)
55 {
57 }
58 _order = value;
59 }
60 }
61
63
65 {
66 }
67
68 public XmlAnyElementAttribute(string? name)
69 {
70 _name = name;
71 }
72
73 public XmlAnyElementAttribute(string? name, string? ns)
74 {
75 _name = name;
76 _ns = ns;
77 _nsSpecified = true;
78 }
79
80 internal bool GetNamespaceSpecified()
81 {
82 return NamespaceSpecified;
83 }
84}
static string XmlDisallowNegativeValues
Definition SR.cs:1804
Definition SR.cs:7