Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlAnyElementAttribute.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Xml.Serialization
;
4
5
[
AttributeUsage
(
AttributeTargets
.Property |
AttributeTargets
.Field |
AttributeTargets
.Parameter |
AttributeTargets
.ReturnValue, AllowMultiple =
true
)]
6
public
class
XmlAnyElementAttribute
:
Attribute
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
}
26
[
param
:
AllowNull
]
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
{
56
throw
new
ArgumentException
(
System
.
SR
.
XmlDisallowNegativeValues
,
"Order"
);
57
}
58
_order
=
value
;
59
}
60
}
61
62
internal
bool
NamespaceSpecified
=>
_nsSpecified
;
63
64
public
XmlAnyElementAttribute
()
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
}
System.Attribute
Definition
Attribute.cs:12
System.SR.XmlDisallowNegativeValues
static string XmlDisallowNegativeValues
Definition
SR.cs:1804
System.SR
Definition
SR.cs:7
System.Xml.Serialization.XmlAnyElementAttribute.GetNamespaceSpecified
bool GetNamespaceSpecified()
Definition
XmlAnyElementAttribute.cs:80
System.Xml.Serialization.XmlAnyElementAttribute.Namespace
string? Namespace
Definition
XmlAnyElementAttribute.cs:34
System.Xml.Serialization.XmlAnyElementAttribute.XmlAnyElementAttribute
XmlAnyElementAttribute(string? name, string? ns)
Definition
XmlAnyElementAttribute.cs:73
System.Xml.Serialization.XmlAnyElementAttribute._name
string _name
Definition
XmlAnyElementAttribute.cs:8
System.Xml.Serialization.XmlAnyElementAttribute._nsSpecified
bool _nsSpecified
Definition
XmlAnyElementAttribute.cs:14
System.Xml.Serialization.XmlAnyElementAttribute.XmlAnyElementAttribute
XmlAnyElementAttribute(string? name)
Definition
XmlAnyElementAttribute.cs:68
System.Xml.Serialization.XmlAnyElementAttribute.Order
int Order
Definition
XmlAnyElementAttribute.cs:47
System.Xml.Serialization.XmlAnyElementAttribute.NamespaceSpecified
bool NamespaceSpecified
Definition
XmlAnyElementAttribute.cs:62
System.Xml.Serialization.XmlAnyElementAttribute._ns
string _ns
Definition
XmlAnyElementAttribute.cs:10
System.Xml.Serialization.XmlAnyElementAttribute.Name
string Name
Definition
XmlAnyElementAttribute.cs:17
System.Xml.Serialization.XmlAnyElementAttribute._order
int _order
Definition
XmlAnyElementAttribute.cs:12
System.Xml.Serialization.XmlAnyElementAttribute.XmlAnyElementAttribute
XmlAnyElementAttribute()
Definition
XmlAnyElementAttribute.cs:64
System.Xml.Serialization.XmlAnyElementAttribute
Definition
XmlAnyElementAttribute.cs:7
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Xml.Serialization
Definition
DateTimeSerializationSection.cs:1
System.Xml.ExceptionType.ArgumentException
@ ArgumentException
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
System
Definition
BlockingCollection.cs:8
source
System.Private.Xml
System.Xml.Serialization
XmlAnyElementAttribute.cs
Generated by
1.10.0