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
ConsoleKeyInfo.cs
Go to the documentation of this file.
1using System;
3
4namespace System
5{
6 // Token: 0x0200012A RID: 298
8 public readonly struct ConsoleKeyInfo
9 {
10 // Token: 0x06000B99 RID: 2969 RVA: 0x0001A160 File Offset: 0x00018360
11 public ConsoleKeyInfo(char keyChar, ConsoleKey key, bool shift, bool alt, bool control)
12 {
14 this._key = key;
15 }
16
17 // Token: 0x17000102 RID: 258
18 // (get) Token: 0x06000B9A RID: 2970 RVA: 0x0000207A File Offset: 0x0000027A
19 public char KeyChar
20 {
21 get
22 {
23 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
24 }
25 }
26
27 // Token: 0x17000103 RID: 259
28 // (get) Token: 0x06000B9B RID: 2971 RVA: 0x0001A17C File Offset: 0x0001837C
30 {
31 get
32 {
33 return this._key;
34 }
35 }
36
37 // Token: 0x06000B9C RID: 2972 RVA: 0x0001A190 File Offset: 0x00018390
38 public override bool Equals(object value)
39 {
40 if (value != null)
41 {
42 ConsoleKey key = this._key;
44 return;
45 }
46 }
47
48 // Token: 0x06000B9D RID: 2973 RVA: 0x0001A1B0 File Offset: 0x000183B0
50 {
51 /*
52An exception occurred when decompiling this method (06000B9D)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ConsoleKeyInfo::Equals(System.ConsoleKeyInfo)
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 stloc:ConsoleKey(var_0_06, ldfld:ConsoleKey(ConsoleKeyInfo::_key, ldloc:valuetype System.ConsoleKeyInfo&(this)))
60 stloc:ConsoleModifiers(var_1_0D, ldfld:ConsoleModifiers(ConsoleKeyInfo::_mods, ldloc:valuetype System.ConsoleKeyInfo&(this)))
61}
62
63 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
64 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
65 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
66 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
67 --- End of inner exception stack trace ---
68 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
69 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
70*/;
71 }
72
73 // Token: 0x06000B9E RID: 2974 RVA: 0x0001A1CC File Offset: 0x000183CC
74 public override int GetHashCode()
75 {
76 /*
77An exception occurred when decompiling this method (06000B9E)
78
79ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.ConsoleKeyInfo::GetHashCode()
80
81 ---> System.Exception: Basic block has to end with unconditional control flow.
82{
83 Block_0:
84 stloc:ConsoleKey(var_0_06, ldfld:ConsoleKey(ConsoleKeyInfo::_key, ldloc:valuetype System.ConsoleKeyInfo&(this)))
85}
86
87 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
88 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
89 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
90 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
91 --- End of inner exception stack trace ---
92 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
93 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
94*/;
95 }
96
97 // Token: 0x040004C0 RID: 1216
98 private readonly char _keyChar;
99
100 // Token: 0x040004C1 RID: 1217
102
103 // Token: 0x040004C2 RID: 1218
105 }
106}
class f__AnonymousType0<< Count > j__TPar
readonly ConsoleModifiers _mods
override bool Equals(object value)
readonly ConsoleKey _key
ConsoleKeyInfo(char keyChar, ConsoleKey key, bool shift, bool alt, bool control)
bool Equals(ConsoleKeyInfo obj)
override int GetHashCode()