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
SafeSerializationManager.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003E6 RID: 998
10 {
11 // Token: 0x06001F84 RID: 8068 RVA: 0x00045390 File Offset: 0x00043590
13 {
14 }
15
16 // Token: 0x06001F85 RID: 8069 RVA: 0x000453A4 File Offset: 0x000435A4
18 {
19 int num = 1;
20 base..ctor();
21 if (num == 0)
22 {
23 }
24 Type type;
25 if (info.GetValueNoThrow("CLR_SafeSerializationManager_RealType", type) != null)
26 {
27 }
28 }
29
30 // Token: 0x17000433 RID: 1075
31 // (get) Token: 0x06001F86 RID: 8070 RVA: 0x000453F4 File Offset: 0x000435F4
32 internal bool IsActive
33 {
34 get
35 {
36 /*
37An exception occurred when decompiling this method (06001F86)
38
39ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Runtime.Serialization.SafeSerializationManager::get_IsActive()
40
41 ---> System.Exception: Basic block has to end with unconditional control flow.
42{
43 Block_0:
44 stloc:class System.EventHandler`1<class System.Runtime.Serialization.SafeSerializationEventArgs>(var_0_06, ldfld:class System.EventHandler`1<class System.Runtime.Serialization.SafeSerializationEventArgs>(SafeSerializationManager::SerializeObjectState, ldloc:SafeSerializationManager(this)))
45}
46
47 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
48 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
49 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
50 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
51 --- End of inner exception stack trace ---
52 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
53 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
54*/;
55 }
56 }
57
58 // Token: 0x06001F87 RID: 8071 RVA: 0x00045408 File Offset: 0x00043608
60 {
61 if (this.SerializeObjectState != null)
62 {
64 Type type2;
65 info.AddValue("CLR_SafeSerializationManager_RealType", type, type2);
66 Type type3;
67 info.SetType(type3);
68 return;
69 }
70 }
71
72 // Token: 0x06001F88 RID: 8072 RVA: 0x0004543C File Offset: 0x0004363C
74 {
76 if (serializedStates != null)
77 {
78 return;
79 }
80 }
81
82 // Token: 0x06001F89 RID: 8073 RVA: 0x000454A4 File Offset: 0x000436A4
90
91 // Token: 0x06001F8A RID: 8074 RVA: 0x000454BC File Offset: 0x000436BC
93 {
94 /*
95An exception occurred when decompiling this method (06001F8A)
96
97ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Serialization.SafeSerializationManager::System.Runtime.Serialization.IObjectReference.GetRealObject(System.Runtime.Serialization.StreamingContext)
98
99 ---> System.Exception: Basic block has to end with unconditional control flow.
100{
101 IL_001C:
102 stloc:object(var_10_2C, call:object(FormatterServices::GetUninitializedObject, ldfld:RuntimeType[exp:Type](SafeSerializationManager::m_realType, ldloc:SafeSerializationManager(this))))
103 stloc:SerializationInfo(var_11_34, ldfld:SerializationInfo(SafeSerializationManager::m_savedSerializationInfo, ldloc:SafeSerializationManager(this)))
104 stfld:object(SafeSerializationManager::m_realObject, ldloc:SafeSerializationManager(this), ldloc:object(var_10_2C))
105}
106
107 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
108 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
109 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
110 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
111 --- End of inner exception stack trace ---
112 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
113 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
114*/;
115 }
116
117 // Token: 0x06001F8B RID: 8075 RVA: 0x00045508 File Offset: 0x00043708
119 private void OnDeserialized(StreamingContext context)
120 {
121 object realObject = this.m_realObject;
122 if (realObject != null)
123 {
125 object realObject2 = this.m_realObject;
126 serializationEventsForType.InvokeOnDeserialized(realObject2, context);
127 }
128 }
129
130 // Token: 0x04000FC2 RID: 4034
132
133 // Token: 0x04000FC3 RID: 4035
135
136 // Token: 0x04000FC4 RID: 4036
137 private object m_realObject;
138
139 // Token: 0x04000FC5 RID: 4037
141
142 // Token: 0x04000FC6 RID: 4038
145
146 // Token: 0x04000FC7 RID: 4039
147 private const string RealTypeSerializationName = "CLR_SafeSerializationManager_RealType";
148 }
149}
class f__AnonymousType0<< Count > j__TPar
SafeSerializationManager(SerializationInfo info, StreamingContext context)
void CompleteSerialization(object serializedObject, SerializationInfo info, StreamingContext context)
EventHandler< SafeSerializationEventArgs > SerializeObjectState
void InvokeOnDeserialized(object obj, StreamingContext context)
new Type GetType()
Definition Type.cs:287
object GetRealObject(StreamingContext context)
void GetObjectData(SerializationInfo info, StreamingContext context)