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
DropdownList.cs
Go to the documentation of this file.
1using System;
5
6namespace NaughtyAttributes
7{
8 // Token: 0x0200000B RID: 11
9 public class DropdownList<T> : IDropdownList, IEnumerable<KeyValuePair<string, object>>, IEnumerable
10 {
11 // Token: 0x06000015 RID: 21 RVA: 0x00002240 File Offset: 0x00000440
12 public DropdownList()
13 {
14 }
15
16 // Token: 0x06000016 RID: 22 RVA: 0x00002253 File Offset: 0x00000453
17 public void Add(string displayName, T value)
18 {
19 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
20 }
21
22 // Token: 0x06000017 RID: 23 RVA: 0x00002260 File Offset: 0x00000460
24 {
25 /*
26An exception occurred when decompiling this method (06000017)
27
28ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.String,System.Object>> NaughtyAttributes.DropdownList`1::GetEnumerator()
29
30 ---> System.Exception: Basic block has to end with unconditional control flow.
31{
32 Block_0:
33 stloc:class [mscorlib]System.Collections.Generic.List`1<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<string, object>>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<string, object>>(DropdownList`1::values, ldloc:DropdownList`1(this)))
34}
35
36 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
37 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
38 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
39 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
40 --- End of inner exception stack trace ---
41 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
42 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
43*/;
44 }
45
46 // Token: 0x06000018 RID: 24 RVA: 0x00002253 File Offset: 0x00000453
48 {
49 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
50 }
51
52 // Token: 0x06000019 RID: 25 RVA: 0x00002274 File Offset: 0x00000474
53 public static explicit operator DropdownList<object>(DropdownList<T> target)
54 {
55 int num = 1;
56 int value = num.m_value;
57 int value2 = num.m_value;
58 long num2 = 0L;
59 if (num != 0)
60 {
61 int value3 = num.m_value;
62 }
63 if (num2 == 0L)
64 {
65 }
66 throw new OutOfMemoryException();
67 }
68
69 // Token: 0x04000009 RID: 9
71 }
72}
class f__AnonymousType0<< Count > j__TPar
void Add(string displayName, T value)
IEnumerator< KeyValuePair< string, object > > GetEnumerator()
List< KeyValuePair< string, object > > values