Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlArrayItemAttribute.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, AllowMultiple =
true
)]
7
public
class
XmlArrayItemAttribute
:
Attribute
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
21
private
XmlSchemaForm
_form
;
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
}
47
[
param
:
AllowNull
]
48
set
49
{
50
_elementName
=
value
;
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
{
74
_nestingLevel
=
value
;
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
}
88
[
param
:
AllowNull
]
89
set
90
{
91
_dataType
=
value
;
92
}
93
}
94
95
public
bool
IsNullable
96
{
97
get
98
{
99
return
_nullable
;
100
}
101
set
102
{
103
_nullable
=
value
;
104
_nullableSpecified
=
true
;
105
}
106
}
107
108
internal
bool
IsNullableSpecified
=>
_nullableSpecified
;
109
110
public
XmlSchemaForm
Form
111
{
112
get
113
{
114
return
_form
;
115
}
116
set
117
{
118
_form
=
value
;
119
}
120
}
121
122
public
XmlArrayItemAttribute
()
123
{
124
}
125
126
public
XmlArrayItemAttribute
(
string
? elementName)
127
{
128
_elementName
= elementName;
129
}
130
131
public
XmlArrayItemAttribute
(
Type
?
type
)
132
{
133
_type
=
type
;
134
}
135
136
public
XmlArrayItemAttribute
(
string
? elementName,
Type
?
type
)
137
{
138
_elementName
= elementName;
139
_type
=
type
;
140
}
141
142
internal
bool
GetIsNullableSpecified
()
143
{
144
return
IsNullableSpecified
;
145
}
146
}
System.Attribute
Definition
Attribute.cs:12
System.Type
Definition
Type.cs:14
System.Xml.Serialization.XmlArrayItemAttribute.ElementName
string ElementName
Definition
XmlArrayItemAttribute.cs:38
System.Xml.Serialization.XmlArrayItemAttribute._ns
string _ns
Definition
XmlArrayItemAttribute.cs:13
System.Xml.Serialization.XmlArrayItemAttribute._type
Type _type
Definition
XmlArrayItemAttribute.cs:11
System.Xml.Serialization.XmlArrayItemAttribute._nullable
bool _nullable
Definition
XmlArrayItemAttribute.cs:17
System.Xml.Serialization.XmlArrayItemAttribute._nestingLevel
int _nestingLevel
Definition
XmlArrayItemAttribute.cs:23
System.Xml.Serialization.XmlArrayItemAttribute._dataType
string _dataType
Definition
XmlArrayItemAttribute.cs:15
System.Xml.Serialization.XmlArrayItemAttribute.XmlArrayItemAttribute
XmlArrayItemAttribute(string? elementName, Type? type)
Definition
XmlArrayItemAttribute.cs:136
System.Xml.Serialization.XmlArrayItemAttribute.IsNullableSpecified
bool IsNullableSpecified
Definition
XmlArrayItemAttribute.cs:108
System.Xml.Serialization.XmlArrayItemAttribute.XmlArrayItemAttribute
XmlArrayItemAttribute(Type? type)
Definition
XmlArrayItemAttribute.cs:131
System.Xml.Serialization.XmlArrayItemAttribute.XmlArrayItemAttribute
XmlArrayItemAttribute(string? elementName)
Definition
XmlArrayItemAttribute.cs:126
System.Xml.Serialization.XmlArrayItemAttribute.Form
XmlSchemaForm Form
Definition
XmlArrayItemAttribute.cs:111
System.Xml.Serialization.XmlArrayItemAttribute.Namespace
string? Namespace
Definition
XmlArrayItemAttribute.cs:55
System.Xml.Serialization.XmlArrayItemAttribute._form
XmlSchemaForm _form
Definition
XmlArrayItemAttribute.cs:21
System.Xml.Serialization.XmlArrayItemAttribute.GetIsNullableSpecified
bool GetIsNullableSpecified()
Definition
XmlArrayItemAttribute.cs:142
System.Xml.Serialization.XmlArrayItemAttribute.NestingLevel
int NestingLevel
Definition
XmlArrayItemAttribute.cs:67
System.Xml.Serialization.XmlArrayItemAttribute.DataType
string DataType
Definition
XmlArrayItemAttribute.cs:79
System.Xml.Serialization.XmlArrayItemAttribute.IsNullable
bool IsNullable
Definition
XmlArrayItemAttribute.cs:96
System.Xml.Serialization.XmlArrayItemAttribute.XmlArrayItemAttribute
XmlArrayItemAttribute()
Definition
XmlArrayItemAttribute.cs:122
System.Xml.Serialization.XmlArrayItemAttribute._nullableSpecified
bool _nullableSpecified
Definition
XmlArrayItemAttribute.cs:19
System.Xml.Serialization.XmlArrayItemAttribute._elementName
string _elementName
Definition
XmlArrayItemAttribute.cs:9
System.Xml.Serialization.XmlArrayItemAttribute
Definition
XmlArrayItemAttribute.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
XmlArrayItemAttribute.cs
Generated by
1.10.0