Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Changing
EventHandler
<
XObjectChangeEventArgs
> System.Xml.Linq.XObject.Changing
add
remove
inherited
Definition at line
95
of file
XObject.cs
.
96
{
97
add
98
{
99
if
(
value
!=
null
)
100
{
101
XObjectChangeAnnotation
xObjectChangeAnnotation
=
Annotation<XObjectChangeAnnotation>
();
102
if
(
xObjectChangeAnnotation
==
null
)
103
{
104
xObjectChangeAnnotation
=
new
XObjectChangeAnnotation();
105
AddAnnotation
(
xObjectChangeAnnotation
);
106
}
107
XObjectChangeAnnotation
xObjectChangeAnnotation2
=
xObjectChangeAnnotation
;
108
xObjectChangeAnnotation2.changing
= (
EventHandler<XObjectChangeEventArgs>
)
Delegate
.Combine(
xObjectChangeAnnotation2
.changing,
value
);
109
}
110
}
111
remove
112
{
113
if
(
value
==
null
)
114
{
115
return
;
116
}
117
XObjectChangeAnnotation
xObjectChangeAnnotation
=
Annotation<XObjectChangeAnnotation>
();
118
if
(
xObjectChangeAnnotation
!=
null
)
119
{
120
xObjectChangeAnnotation.changing
= (
EventHandler<XObjectChangeEventArgs>
)
Delegate
.Remove(
xObjectChangeAnnotation
.changing,
value
);
121
if
(
xObjectChangeAnnotation
.changing ==
null
&&
xObjectChangeAnnotation
.changed ==
null
)
122
{
123
RemoveAnnotations<XObjectChangeAnnotation>
();
124
}
125
}
126
}
127
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Xml.Linq.XObject.AddAnnotation
void AddAnnotation(object annotation)
Definition
XObject.cs:133
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
System.AttributeTargets.Delegate
@ Delegate
System
Xml
Linq
XText
Generated by
1.10.0