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
DelegateSerializationHolder.cs
Go to the documentation of this file.
1using System;
5
6namespace System
7{
8 // Token: 0x02000171 RID: 369
11 {
12 // Token: 0x06000EE1 RID: 3809 RVA: 0x0001FEA8 File Offset: 0x0001E0A8
14 {
15 if (!true)
16 {
17 }
18 Type type;
19 object value = info.GetValue("Delegate", type);
20 if (value != null)
21 {
22 while (value != null)
23 {
24 }
25 return;
26 }
27 }
28
29 // Token: 0x06000EE2 RID: 3810 RVA: 0x0001FEF4 File Offset: 0x0001E0F4
31 {
32 IntPtr invoke_impl = instance.invoke_impl;
33 string text2;
34 string text = "target" + text2;
35 }
36
37 // Token: 0x06000EE3 RID: 3811 RVA: 0x0000207A File Offset: 0x0000027A
39 {
40 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
41 }
42
43 // Token: 0x06000EE4 RID: 3812 RVA: 0x0001FF3C File Offset: 0x0001E13C
44 public object GetRealObject(StreamingContext context)
45 {
46 /*
47An exception occurred when decompiling this method (06000EE4)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.DelegateSerializationHolder::GetRealObject(System.Runtime.Serialization.StreamingContext)
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 Block_0:
54 stloc:Delegate(var_0_06, ldfld:Delegate(DelegateSerializationHolder::_delegate, ldloc:DelegateSerializationHolder(this)))
55}
56
57 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
58 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
59 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
60 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
61 --- End of inner exception stack trace ---
62 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
63 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
64*/;
65 }
66
67 // Token: 0x04000669 RID: 1641
69
70 // Token: 0x02000172 RID: 370
72 private class DelegateEntry
73 {
74 // Token: 0x06000EE5 RID: 3813 RVA: 0x0001FF50 File Offset: 0x0001E150
76 {
77 }
78
79 // Token: 0x06000EE6 RID: 3814 RVA: 0x0001FF88 File Offset: 0x0001E188
81 {
82 if (this.target != null)
83 {
84 }
85 long num = 0L;
86 string text2;
87 string text = "method" + text2;
88 Type type;
89 if (info.GetValueNoThrow(text, type) != null)
90 {
91 }
92 Assembly assembly = Assembly.Load(this.assembly);
93 string text3 = this.type;
94 if (num != 0L)
95 {
96 string text4 = this.methodName;
98 return @delegate;
99 }
101 return delegate2;
102 }
103
104 // Token: 0x0400066A RID: 1642
105 private string type = del;
106
107 // Token: 0x0400066B RID: 1643
108 private string assembly = del;
109
110 // Token: 0x0400066C RID: 1644
111 private object target = targetLabel;
112
113 // Token: 0x0400066D RID: 1645
114 private string targetTypeAssembly = del;
115
116 // Token: 0x0400066E RID: 1646
117 private string targetTypeName = del;
118
119 // Token: 0x0400066F RID: 1647
120 private string methodName = del;
121
122 // Token: 0x04000670 RID: 1648
124 }
125 }
126}
class f__AnonymousType0<< Count > j__TPar
DelegateSerializationHolder.DelegateEntry delegateEntry
Delegate DeserializeDelegate(SerializationInfo info, int index)
object GetRealObject(StreamingContext context)
void GetObjectData(SerializationInfo info, StreamingContext context)
static void GetDelegateData(Delegate instance, SerializationInfo info, StreamingContext ctx)
DelegateSerializationHolder(SerializationInfo info, StreamingContext ctx)
IntPtr invoke_impl
Definition Delegate.cs:371
static Assembly Load(string assemblyString)
Definition Assembly.cs:267