Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Equals()
[1/2]
bool
IEqualityComparer. System.ComponentModel.WeakHashtable.WeakKeyComparer.Equals
(
object
x
,
object
y
)
inline
private
Definition at line
10
of file
WeakHashtable.cs
.
11
{
12
if
(x ==
null
)
13
{
14
return
y ==
null
;
15
}
16
if
(y !=
null
&& x.GetHashCode() == y.GetHashCode())
17
{
18
if
(x
is
WeakReference
weakReference
)
19
{
20
if
(!
weakReference
.IsAlive)
21
{
22
return
false
;
23
}
24
x =
weakReference
.Target;
25
}
26
if
(y
is
WeakReference
weakReference2
)
27
{
28
if
(!
weakReference2
.IsAlive)
29
{
30
return
false
;
31
}
32
y =
weakReference2
.Target;
33
}
34
return
x == y;
35
}
36
return
false
;
37
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System
ComponentModel
WeakHashtable
WeakKeyComparer
Generated by
1.10.0