Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlAttributeAttribute.cs
Go to the documentation of this file.
3
5
6[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
8{
9 private string _attributeName;
10
11 private Type _type;
12
13 private string _ns;
14
15 private string _dataType;
16
18
19 public Type? Type
20 {
21 get
22 {
23 return _type;
24 }
25 set
26 {
27 _type = value;
28 }
29 }
30
31 public string AttributeName
32 {
33 get
34 {
35 if (_attributeName != null)
36 {
37 return _attributeName;
38 }
39 return string.Empty;
40 }
42 set
43 {
45 }
46 }
47
48 public string? Namespace
49 {
50 get
51 {
52 return _ns;
53 }
54 set
55 {
56 _ns = value;
57 }
58 }
59
60 public string DataType
61 {
62 get
63 {
64 if (_dataType != null)
65 {
66 return _dataType;
67 }
68 return string.Empty;
69 }
71 set
72 {
74 }
75 }
76
78 {
79 get
80 {
81 return _form;
82 }
83 set
84 {
85 _form = value;
86 }
87 }
88
90 {
91 }
92
97
99 {
100 _type = type;
101 }
102
108}
XmlAttributeAttribute(string? attributeName, Type? type)