Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SurrogateHashtable.cs
Go to the documentation of this file.
1
using
System.Collections
;
2
3
namespace
System.Runtime.Serialization
;
4
5
internal
sealed
class
SurrogateHashtable
:
Hashtable
6
{
7
internal
SurrogateHashtable
(
int
size)
8
:
base
(size)
9
{
10
}
11
12
protected
override
bool
KeyEquals
(
object
key
,
object
item
)
13
{
14
SurrogateKey
surrogateKey
= (
SurrogateKey
)
item
;
15
SurrogateKey
surrogateKey2
= (
SurrogateKey
)
key
;
16
if
(
surrogateKey2
._type ==
surrogateKey
._type && (
surrogateKey2
._context.State &
surrogateKey
._context.State) ==
surrogateKey
._context.State)
17
{
18
return
surrogateKey2._context.Context
==
surrogateKey
.
_context
.
Context
;
19
}
20
return
false
;
21
}
22
}
System.Collections.Hashtable
Definition
Hashtable.cs:13
System.Runtime.Serialization.SurrogateHashtable.KeyEquals
override bool KeyEquals(object key, object item)
Definition
SurrogateHashtable.cs:12
System.Runtime.Serialization.SurrogateHashtable.SurrogateHashtable
SurrogateHashtable(int size)
Definition
SurrogateHashtable.cs:7
System.Runtime.Serialization.SurrogateHashtable
Definition
SurrogateHashtable.cs:6
System.Runtime.Serialization.SurrogateKey._context
readonly StreamingContext _context
Definition
SurrogateKey.cs:7
System.Runtime.Serialization.SurrogateKey
Definition
SurrogateKey.cs:4
System.Collections
Definition
BlockingCollection.cs:8
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System.Runtime.Serialization
Definition
SerializationGuard.cs:3
System.ExceptionArgument.key
@ key
System.ExceptionArgument.item
@ item
System.Runtime.Serialization.StreamingContext.Context
object? Context
Definition
StreamingContext.cs:13
source
System.Runtime.Serialization.Formatters
System.Runtime.Serialization
SurrogateHashtable.cs
Generated by
1.10.0