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
DisplayModeCollection.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000360 RID: 864
9 public class DisplayModeCollection : IEnumerable<DisplayMode>, IEnumerable
10 {
11 // Token: 0x17000297 RID: 663
13 {
14 get
15 {
17 throw new OutOfMemoryException();
18 }
19 }
20
21 // Token: 0x0600168A RID: 5770 RVA: 0x00062F3C File Offset: 0x0006113C
23 {
24 /*
25An exception occurred when decompiling this method (0600168A)
26
27ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<Microsoft.Xna.Framework.Graphics.DisplayMode> Microsoft.Xna.Framework.Graphics.DisplayModeCollection::GetEnumerator()
28
29 ---> System.Exception: Basic block has to end with unconditional control flow.
30{
31 Block_0:
32 stloc:class [mscorlib]System.Collections.Generic.List`1<class Microsoft.Xna.Framework.Graphics.DisplayMode>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Microsoft.Xna.Framework.Graphics.DisplayMode>(DisplayModeCollection::_modes, ldloc:DisplayModeCollection(this)))
33}
34
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 1852
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: 0x0600168B RID: 5771 RVA: 0x00062F50 File Offset: 0x00061150
47 {
48 /*
49An exception occurred when decompiling this method (0600168B)
50
51ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator Microsoft.Xna.Framework.Graphics.DisplayModeCollection::System.Collections.IEnumerable.GetEnumerator()
52
53 ---> System.Exception: Basic block has to end with unconditional control flow.
54{
55 Block_0:
56 stloc:class [mscorlib]System.Collections.Generic.List`1<class Microsoft.Xna.Framework.Graphics.DisplayMode>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Microsoft.Xna.Framework.Graphics.DisplayMode>(DisplayModeCollection::_modes, ldloc:DisplayModeCollection(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: 0x0600168C RID: 5772 RVA: 0x00062F64 File Offset: 0x00061164
71 {
72 if (!true)
73 {
74 }
75 if (!true)
76 {
77 }
79 }
80
81 // Token: 0x040024D2 RID: 9426
83
84 // Token: 0x02000361 RID: 865
86 [Serializable]
87 private sealed class <>c
88 {
89 // Token: 0x0600168D RID: 5773 RVA: 0x00062F84 File Offset: 0x00061184
90 // Note: this type is marked as 'beforefieldinit'.
91 static <>c()
92 {
93 }
94
95 // Token: 0x0600168E RID: 5774 RVA: 0x00062F94 File Offset: 0x00061194
96 public <>c()
97 {
98 }
99
100 // Token: 0x0600168F RID: 5775 RVA: 0x00062FA8 File Offset: 0x000611A8
101 internal int <.ctor>b__5_0(DisplayMode a, DisplayMode b)
102 {
105 if (b != null && a != null)
106 {
107 int height = a.height;
108 int height2 = b.height;
109 int width = a.width;
110 int width2 = b.width;
111 }
112 int width3 = a.width;
113 int width4 = b.width;
114 int height3 = a.height;
115 int height4 = b.height;
116 return 1;
117 }
118
119 // Token: 0x040024D3 RID: 9427
120 public static readonly DisplayModeCollection.<>c <>9;
121
122 // Token: 0x040024D4 RID: 9428
123 public static Comparison<DisplayMode> <>9__5_0;
124 }
125 }
126}
class f__AnonymousType0<< Count > j__TPar