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
SerializationEvents.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003D2 RID: 978
8 internal sealed class SerializationEvents
9 {
10 // Token: 0x06001EEB RID: 7915 RVA: 0x000438AC File Offset: 0x00041AAC
25
26 // Token: 0x06001EEC RID: 7916 RVA: 0x000438E0 File Offset: 0x00041AE0
28 {
29 /*
30An exception occurred when decompiling this method (06001EEC)
31
32ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.List`1<System.Reflection.MethodInfo> System.Runtime.Serialization.SerializationEvents::GetMethodsWithAttribute(System.Type,System.Type)
33
34 ---> System.Exception: Basic block has to end with unconditional control flow.
35{
36 IL_000A:
37 stloc:bool(var_4_11, call:bool(Type::op_Inequality, ldloc:Type(t), ldloc:Type(var_3)))
38 brtrue(IL_0000, ldloc:int64[exp:bool](var_1_03))
39}
40
41 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
42 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
43 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
44 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
45 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
46 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
47 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
48 --- End of inner exception stack trace ---
49 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
50 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
51*/;
52 }
53
54 // Token: 0x17000411 RID: 1041
55 // (get) Token: 0x06001EED RID: 7917 RVA: 0x00043908 File Offset: 0x00041B08
57 {
58 get
59 {
60 return this._onSerializingMethods == null || true;
61 }
62 }
63
64 // Token: 0x06001EEE RID: 7918 RVA: 0x00043920 File Offset: 0x00041B20
65 internal void InvokeOnSerializing(object obj, StreamingContext context)
66 {
69 if (serializationEventHandler != null)
70 {
71 IntPtr method_code = serializationEventHandler.method_code;
72 IntPtr invoke_impl = serializationEventHandler.invoke_impl;
73 IntPtr method = serializationEventHandler.method;
74 return;
75 }
76 }
77
78 // Token: 0x06001EEF RID: 7919 RVA: 0x00043950 File Offset: 0x00041B50
79 internal void InvokeOnDeserializing(object obj, StreamingContext context)
80 {
83 if (serializationEventHandler != null)
84 {
85 IntPtr method_code = serializationEventHandler.method_code;
86 IntPtr invoke_impl = serializationEventHandler.invoke_impl;
87 IntPtr method = serializationEventHandler.method;
88 return;
89 }
90 }
91
92 // Token: 0x06001EF0 RID: 7920 RVA: 0x00043980 File Offset: 0x00041B80
93 internal void InvokeOnDeserialized(object obj, StreamingContext context)
94 {
97 if (serializationEventHandler != null)
98 {
99 IntPtr method_code = serializationEventHandler.method_code;
100 IntPtr invoke_impl = serializationEventHandler.invoke_impl;
101 IntPtr method = serializationEventHandler.method;
102 return;
103 }
104 }
105
106 // Token: 0x06001EF1 RID: 7921 RVA: 0x000439B0 File Offset: 0x00041BB0
112
113 // Token: 0x06001EF2 RID: 7922 RVA: 0x000439CC File Offset: 0x00041BCC
119
120 // Token: 0x06001EF3 RID: 7923 RVA: 0x000439E8 File Offset: 0x00041BE8
121 private static void InvokeOnDelegate(object obj, StreamingContext context, List<MethodInfo> methods)
122 {
124 if (serializationEventHandler != null)
125 {
126 IntPtr method_code = serializationEventHandler.method_code;
127 IntPtr invoke_impl = serializationEventHandler.invoke_impl;
128 IntPtr method = serializationEventHandler.method;
129 return;
130 }
131 }
132
133 // Token: 0x06001EF4 RID: 7924 RVA: 0x00043A10 File Offset: 0x00041C10
135 {
136 if (handler != null)
137 {
138 if (handler != null)
139 {
140 }
142 if (@delegate != null)
143 {
144 }
145 }
146 throw new InvalidCastException();
147 }
148
149 // Token: 0x04000F81 RID: 3969
151
152 // Token: 0x04000F82 RID: 3970
154
155 // Token: 0x04000F83 RID: 3971
157
158 // Token: 0x04000F84 RID: 3972
160 }
161}
class f__AnonymousType0<< Count > j__TPar
static void InvokeOnDelegate(object obj, StreamingContext context, List< MethodInfo > methods)
void InvokeOnDeserializing(object obj, StreamingContext context)
static SerializationEventHandler AddOnDelegate(object obj, SerializationEventHandler handler, List< MethodInfo > methods)
void InvokeOnDeserialized(object obj, StreamingContext context)
List< MethodInfo > GetMethodsWithAttribute(Type attribute, Type t)
void InvokeOnSerializing(object obj, StreamingContext context)
SerializationEventHandler AddOnDeserialized(object obj, SerializationEventHandler handler)
SerializationEventHandler AddOnSerialized(object obj, SerializationEventHandler handler)