terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
StrongNameKeyPair.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
System.Runtime.Serialization
;
4
5
namespace
System.Reflection
6
{
7
// Token: 0x02000518 RID: 1304
8
[
ComVisible
(
true
)]
9
[
Serializable
]
10
public
class
StrongNameKeyPair
:
ISerializable
,
IDeserializationCallback
11
{
12
// Token: 0x06002667 RID: 9831 RVA: 0x00054060 File Offset: 0x00052260
13
protected
StrongNameKeyPair
(
SerializationInfo
info
,
StreamingContext
context)
14
{
15
if
(!
true
)
16
{
17
}
18
Type
type;
19
object
value
=
info
.GetValue(
"_publicKey"
, type);
20
if
(
value
!=
null
)
21
{
22
if
(
value
!=
null
)
23
{
24
this._publicKey
=
value
;
25
if
(
value
!=
null
)
26
{
27
goto
IL_002C
;
28
}
29
}
30
throw
new
InvalidCastException
();
31
}
32
IL_002C
:
33
string
@
string
=
info
.GetString(
"_keyPairContainer"
);
34
this._keyPairContainer
= @string;
35
bool
boolean
=
info
.GetBoolean(
"_keyPairExported"
);
36
this._keyPairExported
=
"_keyPairContainer"
!=
null
;
37
Type
type2
;
38
object
value2
=
info
.GetValue(
"_keyPairArray"
,
type2
);
39
if
(
value2
!=
null
)
40
{
41
if
(
value2
==
null
)
42
{
43
throw
new
InvalidCastException
();
44
}
45
this._keyPairArray
=
value2
;
46
if
(
value2
==
null
)
47
{
48
throw
new
InvalidCastException
();
49
}
50
}
51
}
52
53
// Token: 0x06002668 RID: 9832 RVA: 0x000540F4 File Offset: 0x000522F4
54
void
ISerializable
.
GetObjectData
(
SerializationInfo
info
,
StreamingContext
context)
55
{
56
byte
[] publicKey = this.
_publicKey
;
57
if
(!
true
)
58
{
59
}
60
Type
type;
61
info
.AddValue(
"_publicKey"
, publicKey, type);
62
string
keyPairContainer
= this.
_keyPairContainer
;
63
info.
AddValue
(
"_keyPairContainer"
,
keyPairContainer
);
64
bool
keyPairExported
= this.
_keyPairExported
;
65
info.
AddValue
(
"_keyPairExported"
,
keyPairExported
);
66
byte
[]
keyPairArray
= this.
_keyPairArray
;
67
Type
type2
;
68
info
.AddValue(
"_keyPairArray"
,
keyPairArray
,
type2
);
69
}
70
71
// Token: 0x06002669 RID: 9833 RVA: 0x00054158 File Offset: 0x00052358
72
void
IDeserializationCallback
.
OnDeserialization
(
object
sender
)
73
{
74
}
75
76
// Token: 0x04001512 RID: 5394
77
private
byte
[]
_publicKey
;
78
79
// Token: 0x04001513 RID: 5395
80
private
string
_keyPairContainer
;
81
82
// Token: 0x04001514 RID: 5396
83
private
bool
_keyPairExported
;
84
85
// Token: 0x04001515 RID: 5397
86
private
byte
[]
_keyPairArray
;
87
}
88
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.Reflection.StrongNameKeyPair._keyPairContainer
string _keyPairContainer
Definition
StrongNameKeyPair.cs:80
System.Reflection.StrongNameKeyPair._keyPairExported
bool _keyPairExported
Definition
StrongNameKeyPair.cs:83
System.Reflection.StrongNameKeyPair._publicKey
byte[] _publicKey
Definition
StrongNameKeyPair.cs:77
System.Reflection.StrongNameKeyPair._keyPairArray
byte[] _keyPairArray
Definition
StrongNameKeyPair.cs:86
System.Reflection.StrongNameKeyPair.StrongNameKeyPair
StrongNameKeyPair(SerializationInfo info, StreamingContext context)
Definition
StrongNameKeyPair.cs:13
System.Reflection.StrongNameKeyPair
Definition
StrongNameKeyPair.cs:11
System.Runtime.Serialization.SerializationInfo.AddValue
void AddValue(string name, object value, Type type)
Definition
SerializationInfo.cs:178
System.Runtime.Serialization.SerializationInfo
Definition
SerializationInfo.cs:10
System.Type
Definition
Type.cs:12
System.Runtime.Serialization.IDeserializationCallback.OnDeserialization
void OnDeserialization(object sender)
System.Runtime.Serialization.IDeserializationCallback
Definition
IDeserializationCallback.cs:7
System.Runtime.Serialization.ISerializable.GetObjectData
void GetObjectData(SerializationInfo info, StreamingContext context)
System.Runtime.Serialization.ISerializable
Definition
ISerializable.cs:7
System.Reflection.TypeAttributes.Serializable
@ Serializable
System.Reflection
Definition
AmbiguousMatchException.cs:5
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Runtime.Serialization
Definition
DeserializationEventHandler.cs:4
System.ExceptionArgument.value
@ value
System.ExceptionArgument.info
@ info
System
Definition
__ComObject.cs:4
System.Runtime.Serialization.StreamingContext
Definition
StreamingContext.cs:10
source
mscorlib
System
Reflection
StrongNameKeyPair.cs
Generated by
1.10.0