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
OptionalInt32.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
5
6namespace InControl
7{
8 // Token: 0x02000068 RID: 104
10 public struct OptionalInt32
11 {
12 // Token: 0x060004BF RID: 1215 RVA: 0x0000F868 File Offset: 0x0000DA68
13 public OptionalInt32(int value)
14 {
16 this.hasValue = true;
17 }
18
19 // Token: 0x17000159 RID: 345
20 // (get) Token: 0x060004C0 RID: 1216 RVA: 0x000025E1 File Offset: 0x000007E1
21 public bool HasValue
22 {
23 get
24 {
25 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27 }
28
29 // Token: 0x1700015A RID: 346
30 // (get) Token: 0x060004C1 RID: 1217 RVA: 0x000025E1 File Offset: 0x000007E1
31 public bool HasNoValue
32 {
33 get
34 {
35 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
36 }
37 }
38
39 // Token: 0x1700015B RID: 347
40 // (get) Token: 0x060004C2 RID: 1218 RVA: 0x0000F884 File Offset: 0x0000DA84
41 // (set) Token: 0x060004C3 RID: 1219 RVA: 0x0000F898 File Offset: 0x0000DA98
42 public int Value
43 {
44 get
45 {
46 return this.value;
47 }
48 set
49 {
51 this.hasValue = true;
52 }
53 }
54
55 // Token: 0x060004C4 RID: 1220 RVA: 0x0000F8B4 File Offset: 0x0000DAB4
56 public void Clear()
57 {
58 }
59
60 // Token: 0x060004C5 RID: 1221 RVA: 0x0000F8C4 File Offset: 0x0000DAC4
61 public int GetValueOrDefault(int defaultValue)
62 {
63 return this.value;
64 }
65
66 // Token: 0x060004C6 RID: 1222 RVA: 0x0000F8D8 File Offset: 0x0000DAD8
67 public int GetValueOrZero()
68 {
69 return this.value;
70 }
71
72 // Token: 0x060004C7 RID: 1223 RVA: 0x0000F8F0 File Offset: 0x0000DAF0
73 public void SetValue(int value)
74 {
76 this.hasValue = true;
77 }
78
79 // Token: 0x060004C8 RID: 1224 RVA: 0x0000F90C File Offset: 0x0000DB0C
80 public override bool Equals(object other)
81 {
82 if (other == null)
83 {
84 }
85 bool flag;
86 return flag;
87 }
88
89 // Token: 0x060004C9 RID: 1225 RVA: 0x0000F920 File Offset: 0x0000DB20
91 {
92 /*
93An exception occurred when decompiling this method (060004C9)
94
95ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.OptionalInt32::Equals(InControl.OptionalInt32)
96
97 ---> System.Exception: Basic block has to end with unconditional control flow.
98{
99 Block_0:
100 stloc:int32(var_1_08, ldfld:int32(OptionalInt32::value, ldloc:valuetype InControl.OptionalInt32&(this)))
101}
102
103 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
104 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
105 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
106 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
107 --- End of inner exception stack trace ---
108 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
109 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
110*/;
111 }
112
113 // Token: 0x060004CA RID: 1226 RVA: 0x0000F938 File Offset: 0x0000DB38
114 public bool Equals(int other)
115 {
116 /*
117An exception occurred when decompiling this method (060004CA)
118
119ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.OptionalInt32::Equals(System.Int32)
120
121 ---> System.Exception: Basic block has to end with unconditional control flow.
122{
123 Block_0:
124 stloc:int32(var_0_06, ldfld:int32(OptionalInt32::value, ldloc:valuetype InControl.OptionalInt32&(this)))
125}
126
127 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
128 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
129 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
130 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
131 --- End of inner exception stack trace ---
132 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
133 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
134*/;
135 }
136
137 // Token: 0x060004CB RID: 1227 RVA: 0x0000F950 File Offset: 0x0000DB50
138 public static bool operator ==(OptionalInt32 a, OptionalInt32 b)
139 {
140 }
141
142 // Token: 0x060004CC RID: 1228 RVA: 0x0000F960 File Offset: 0x0000DB60
143 public static bool operator !=(OptionalInt32 a, OptionalInt32 b)
144 {
145 return true;
146 }
147
148 // Token: 0x060004CD RID: 1229 RVA: 0x000025E1 File Offset: 0x000007E1
149 public static bool operator ==(OptionalInt32 a, int b)
150 {
151 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
152 }
153
154 // Token: 0x060004CE RID: 1230 RVA: 0x000025E1 File Offset: 0x000007E1
155 public static bool operator !=(OptionalInt32 a, int b)
156 {
157 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
158 }
159
160 // Token: 0x060004CF RID: 1231 RVA: 0x000025E1 File Offset: 0x000007E1
161 private static int CombineHashCodes(int h1, int h2)
162 {
163 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
164 }
165
166 // Token: 0x060004D0 RID: 1232 RVA: 0x0000F970 File Offset: 0x0000DB70
167 public override int GetHashCode()
168 {
169 int num;
170 return num.GetHashCode();
171 }
172
173 // Token: 0x060004D1 RID: 1233 RVA: 0x0000F984 File Offset: 0x0000DB84
174 public override string ToString()
175 {
177 string text;
178 return text;
179 }
180
181 // Token: 0x060004D2 RID: 1234 RVA: 0x0000F9A0 File Offset: 0x0000DBA0
182 public static implicit operator OptionalInt32(int value)
183 {
184 return 1;
185 }
186
187 // Token: 0x060004D3 RID: 1235 RVA: 0x0000F9B0 File Offset: 0x0000DBB0
188 public static explicit operator int(OptionalInt32 optional)
189 {
190 int num;
191 return num;
192 }
193
194 // Token: 0x040003EA RID: 1002
196 private bool hasValue;
197
198 // Token: 0x040003EB RID: 1003
200 private int value;
201 }
202}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
void SetValue(int value)
static bool operator!=(OptionalInt32 a, OptionalInt32 b)
static bool operator==(OptionalInt32 a, OptionalInt32 b)
static int CombineHashCodes(int h1, int h2)
override bool Equals(object other)
int GetValueOrDefault(int defaultValue)
override string ToString()
bool Equals(OptionalInt32 other)
override int GetHashCode()