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
OSSpecificSynchronizationContext.cs
Go to the documentation of this file.
1using System;
5using Mono.Interop;
6
7namespace System.Threading
8{
9 // Token: 0x020001F3 RID: 499
11 {
12 // Token: 0x060011D1 RID: 4561 RVA: 0x00025D70 File Offset: 0x00023F70
17
18 // Token: 0x060011D2 RID: 4562 RVA: 0x00025D8C File Offset: 0x00023F8C
20 {
21 /*
22An exception occurred when decompiling this method (060011D2)
23
24ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.OSSpecificSynchronizationContext System.Threading.OSSpecificSynchronizationContext::Get()
25
26 ---> System.Exception: Basic block has to end with unconditional control flow.
27{
28 IL_0000:
29 brtrue(IL_0000, ldc.i4:bool(1))
30}
31
32 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
33 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
34 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
35 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
36 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
37 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
38 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
39 --- End of inner exception stack trace ---
40 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
41 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
42*/;
43 }
44
45 // Token: 0x060011D3 RID: 4563 RVA: 0x00025D9C File Offset: 0x00023F9C
47 {
48 /*
49An exception occurred when decompiling this method (060011D3)
50
51ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.SynchronizationContext System.Threading.OSSpecificSynchronizationContext::CreateCopy()
52
53 ---> System.Exception: Basic block has to end with unconditional control flow.
54{
55 Block_0:
56 stloc:object(var_0_06, ldfld:object(OSSpecificSynchronizationContext::m_OSSynchronizationContext, ldloc:OSSpecificSynchronizationContext(this)))
57}
58
59 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
60 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
61 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
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 88
63 --- End of inner exception stack trace ---
64 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
65 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
66*/;
67 }
68
69 // Token: 0x060011D4 RID: 4564 RVA: 0x0000207A File Offset: 0x0000027A
70 public override void Send(SendOrPostCallback d, object state)
71 {
72 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
73 }
74
75 // Token: 0x060011D5 RID: 4565 RVA: 0x00025DB0 File Offset: 0x00023FB0
76 public override void Post(SendOrPostCallback d, object state)
77 {
78 if (!true)
79 {
80 }
84 }
85
86 // Token: 0x060011D6 RID: 4566 RVA: 0x00025DD4 File Offset: 0x00023FD4
88 private static void InvocationEntry(IntPtr arg)
89 {
90 if (GCHandle.FromIntPtr(arg).Target != null)
91 {
92 }
93 }
94
95 // Token: 0x060011D7 RID: 4567 RVA: 0x0000207A File Offset: 0x0000027A
96 private static object GetOSContext()
97 {
98 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
99 }
100
101 // Token: 0x060011D8 RID: 4568 RVA: 0x00025E00 File Offset: 0x00024000
102 private static void PostInternal(object osSynchronizationContext, IntPtr callback, IntPtr arg)
103 {
104 }
105
106 // Token: 0x060011D9 RID: 4569 RVA: 0x00025E10 File Offset: 0x00024010
107 // Note: this type is marked as 'beforefieldinit'.
111
112 // Token: 0x04000996 RID: 2454
114
115 // Token: 0x04000997 RID: 2455
117
118 // Token: 0x020001F4 RID: 500
120 {
121 // Token: 0x060011DA RID: 4570 RVA: 0x00025E20 File Offset: 0x00024020
122 public InvocationEntryDelegate(object @object, IntPtr method)
123 {
125 this.m_target = @object;
127 this.method_code = this;
128 }
129
130 // Token: 0x060011DB RID: 4571 RVA: 0x00025E74 File Offset: 0x00024074
131 public void Invoke(IntPtr arg)
132 {
135 IntPtr method = this.method;
136 }
137 }
138
139 // Token: 0x020001F5 RID: 501
140 private class InvocationContext
141 {
142 // Token: 0x060011DC RID: 4572 RVA: 0x00025E98 File Offset: 0x00024098
144 {
145 this.m_Delegate = d;
147 }
148
149 // Token: 0x060011DD RID: 4573 RVA: 0x00025EBC File Offset: 0x000240BC
150 public void Invoke()
151 {
153 object state = this.m_State;
154 IntPtr invoke_impl = @delegate.invoke_impl;
155 IntPtr method_code = @delegate.method_code;
156 IntPtr method = @delegate.method;
157 }
158
159 // Token: 0x04000998 RID: 2456
161
162 // Token: 0x04000999 RID: 2457
163 private object m_State;
164 }
165
166 // Token: 0x020001F6 RID: 502
168 [Serializable]
169 private sealed class <>c
170 {
171 // Token: 0x060011DE RID: 4574 RVA: 0x00025EF0 File Offset: 0x000240F0
172 // Note: this type is marked as 'beforefieldinit'.
173 static <>c()
174 {
175 }
176
177 // Token: 0x060011DF RID: 4575 RVA: 0x00025F00 File Offset: 0x00024100
178 public <>c()
179 {
180 }
181
182 // Token: 0x060011E0 RID: 4576 RVA: 0x0000207A File Offset: 0x0000027A
184 {
185 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
186 }
187
188 // Token: 0x0400099A RID: 2458
190
191 // Token: 0x0400099B RID: 2459
193 }
194 }
195}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
override void Post(SendOrPostCallback d, object state)
static void PostInternal(object osSynchronizationContext, IntPtr callback, IntPtr arg)
static readonly ConditionalWeakTable< object, OSSpecificSynchronizationContext > s_ContextCache
override void Send(SendOrPostCallback d, object state)
static IntPtr ToIntPtr(GCHandle value)
Definition GCHandle.cs:186
static GCHandle FromIntPtr(IntPtr value)
Definition GCHandle.cs:179