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
CancellationToken.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Threading
7{
8 // Token: 0x020001C9 RID: 457
9 [DebuggerDisplay("IsCancellationRequested = {IsCancellationRequested}")]
11 {
12 // Token: 0x17000187 RID: 391
13 // (get) Token: 0x060010CE RID: 4302 RVA: 0x000239E4 File Offset: 0x00021BE4
14 public static CancellationToken None
15 {
16 get
17 {
18 }
19 }
20
21 // Token: 0x17000188 RID: 392
22 // (get) Token: 0x060010CF RID: 4303 RVA: 0x000239F4 File Offset: 0x00021BF4
24 {
25 get
26 {
27 }
28 }
29
30 // Token: 0x17000189 RID: 393
31 // (get) Token: 0x060010D0 RID: 4304 RVA: 0x0000207A File Offset: 0x0000027A
32 public bool CanBeCanceled
33 {
34 get
35 {
36 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
37 }
38 }
39
40 // Token: 0x060010D1 RID: 4305 RVA: 0x00023A04 File Offset: 0x00021C04
45
46 // Token: 0x060010D2 RID: 4306 RVA: 0x00023A18 File Offset: 0x00021C18
48 {
49 }
50
51 // Token: 0x060010D3 RID: 4307 RVA: 0x00023A30 File Offset: 0x00021C30
53 {
54 do
55 {
56 if (!true)
57 {
58 }
59 }
60 while (callback == null);
63 }
64
65 // Token: 0x060010D4 RID: 4308 RVA: 0x00023A44 File Offset: 0x00021C44
67 {
68 long num = 0L;
69 long num2 = 0L;
70 return this.Register(callback, state, num != 0L, num2 != 0L);
71 }
72
73 // Token: 0x060010D5 RID: 4309 RVA: 0x00023A60 File Offset: 0x00021C60
84
85 // Token: 0x060010D6 RID: 4310 RVA: 0x0000207A File Offset: 0x0000027A
87 {
88 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
89 }
90
91 // Token: 0x060010D7 RID: 4311 RVA: 0x00023A80 File Offset: 0x00021C80
92 public override bool Equals(object other)
93 {
94 if (other != null)
95 {
96 return;
97 }
98 }
99
100 // Token: 0x060010D8 RID: 4312 RVA: 0x00023A94 File Offset: 0x00021C94
101 public override int GetHashCode()
102 {
103 /*
104An exception occurred when decompiling this method (060010D8)
105
106ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Threading.CancellationToken::GetHashCode()
107
108 ---> System.Exception: Basic block has to end with unconditional control flow.
109{
110 IL_0000:
111 brtrue(IL_0000, ldc.i4:bool(1))
112}
113
114 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
115 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
116 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
117 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
118 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
119 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
120 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
121 --- End of inner exception stack trace ---
122 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
123 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
124*/;
125 }
126
127 // Token: 0x060010D9 RID: 4313 RVA: 0x0000207A File Offset: 0x0000027A
128 public static bool operator ==(CancellationToken left, CancellationToken right)
129 {
130 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
131 }
132
133 // Token: 0x060010DA RID: 4314 RVA: 0x0000207A File Offset: 0x0000027A
134 public static bool operator !=(CancellationToken left, CancellationToken right)
135 {
136 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
137 }
138
139 // Token: 0x060010DB RID: 4315 RVA: 0x00023AA4 File Offset: 0x00021CA4
141 {
142 }
143
144 // Token: 0x060010DC RID: 4316 RVA: 0x0000207A File Offset: 0x0000027A
146 {
147 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
148 }
149
150 // Token: 0x060010DD RID: 4317 RVA: 0x00023AB8 File Offset: 0x00021CB8
151 // Note: this type is marked as 'beforefieldinit'.
153 {
154 if (!true)
155 {
156 }
157 }
158
159 // Token: 0x04000918 RID: 2328
161
162 // Token: 0x04000919 RID: 2329
164
165 // Token: 0x020001CA RID: 458
167 [Serializable]
168 private sealed class <>c
169 {
170 // Token: 0x060010DE RID: 4318 RVA: 0x00023AC8 File Offset: 0x00021CC8
171 // Note: this type is marked as 'beforefieldinit'.
172 static <>c()
173 {
174 }
175
176 // Token: 0x060010DF RID: 4319 RVA: 0x00023AD8 File Offset: 0x00021CD8
177 public <>c()
178 {
179 }
180
181 // Token: 0x060010E0 RID: 4320 RVA: 0x00023AEC File Offset: 0x00021CEC
182 internal void <.cctor>b__26_0(object obj)
183 {
184 if (obj != null)
185 {
186 }
187 }
188
189 // Token: 0x0400091A RID: 2330
190 public static readonly CancellationToken.<>c <>9;
191 }
192 }
193}
class f__AnonymousType0<< Count > j__TPar
static ExecutionContext Capture()
static bool operator!=(CancellationToken left, CancellationToken right)
static readonly Action< object > s_actionToActionObjShunt
override bool Equals(object other)
CancellationTokenRegistration InternalRegisterWithoutEC(Action< object > callback, object state)
CancellationTokenRegistration Register(Action callback)
bool Equals(CancellationToken other)
CancellationToken(CancellationTokenSource source)
readonly CancellationTokenSource _source
CancellationTokenRegistration Register(Action< object > callback, object state, bool useSynchronizationContext, bool useExecutionContext)
static bool operator==(CancellationToken left, CancellationToken right)