Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlAttributeAttribute.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
using
System.Xml.Schema
;
3
4
namespace
System.Xml.Serialization
;
5
6
[
AttributeUsage
(
AttributeTargets
.Property |
AttributeTargets
.Field |
AttributeTargets
.Parameter |
AttributeTargets
.ReturnValue)]
7
public
class
XmlAttributeAttribute
:
Attribute
8
{
9
private
string
_attributeName
;
10
11
private
Type
_type
;
12
13
private
string
_ns
;
14
15
private
string
_dataType
;
16
17
private
XmlSchemaForm
_form
;
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
}
41
[
param
:
AllowNull
]
42
set
43
{
44
_attributeName
=
value
;
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
}
70
[
param
:
AllowNull
]
71
set
72
{
73
_dataType
=
value
;
74
}
75
}
76
77
public
XmlSchemaForm
Form
78
{
79
get
80
{
81
return
_form
;
82
}
83
set
84
{
85
_form
=
value
;
86
}
87
}
88
89
public
XmlAttributeAttribute
()
90
{
91
}
92
93
public
XmlAttributeAttribute
(
string
?
attributeName
)
94
{
95
_attributeName
=
attributeName
;
96
}
97
98
public
XmlAttributeAttribute
(
Type
?
type
)
99
{
100
_type
=
type
;
101
}
102
103
public
XmlAttributeAttribute
(
string
?
attributeName
,
Type
?
type
)
104
{
105
_attributeName
=
attributeName
;
106
_type
=
type
;
107
}
108
}
System.Attribute
Definition
Attribute.cs:12
System.Type
Definition
Type.cs:14
System.Xml.Serialization.XmlAttributeAttribute.DataType
string DataType
Definition
XmlAttributeAttribute.cs:61
System.Xml.Serialization.XmlAttributeAttribute._attributeName
string _attributeName
Definition
XmlAttributeAttribute.cs:9
System.Xml.Serialization.XmlAttributeAttribute.XmlAttributeAttribute
XmlAttributeAttribute(Type? type)
Definition
XmlAttributeAttribute.cs:98
System.Xml.Serialization.XmlAttributeAttribute.XmlAttributeAttribute
XmlAttributeAttribute(string? attributeName, Type? type)
Definition
XmlAttributeAttribute.cs:103
System.Xml.Serialization.XmlAttributeAttribute.Form
XmlSchemaForm Form
Definition
XmlAttributeAttribute.cs:78
System.Xml.Serialization.XmlAttributeAttribute.XmlAttributeAttribute
XmlAttributeAttribute(string? attributeName)
Definition
XmlAttributeAttribute.cs:93
System.Xml.Serialization.XmlAttributeAttribute._form
XmlSchemaForm _form
Definition
XmlAttributeAttribute.cs:17
System.Xml.Serialization.XmlAttributeAttribute._dataType
string _dataType
Definition
XmlAttributeAttribute.cs:15
System.Xml.Serialization.XmlAttributeAttribute._ns
string _ns
Definition
XmlAttributeAttribute.cs:13
System.Xml.Serialization.XmlAttributeAttribute.Namespace
string? Namespace
Definition
XmlAttributeAttribute.cs:49
System.Xml.Serialization.XmlAttributeAttribute._type
Type _type
Definition
XmlAttributeAttribute.cs:11
System.Xml.Serialization.XmlAttributeAttribute.XmlAttributeAttribute
XmlAttributeAttribute()
Definition
XmlAttributeAttribute.cs:89
System.Xml.Serialization.XmlAttributeAttribute.AttributeName
string AttributeName
Definition
XmlAttributeAttribute.cs:32
System.Xml.Serialization.XmlAttributeAttribute
Definition
XmlAttributeAttribute.cs:8
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Xml.Schema.XmlSchemaForm
XmlSchemaForm
Definition
XmlSchemaForm.cs:6
System.Xml.Schema
Definition
Extensions.cs:3
System.Xml.Serialization
Definition
DateTimeSerializationSection.cs:1
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
System.ExceptionArgument.type
@ type
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
source
System.Private.Xml
System.Xml.Serialization
XmlAttributeAttribute.cs
Generated by
1.10.0