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
Int32.cs
Go to the documentation of this file.
1using System;
6
7namespace System
8{
9 // Token: 0x020000CF RID: 207
12 {
13 // Token: 0x06000792 RID: 1938 RVA: 0x0001253C File Offset: 0x0001073C
14 public int CompareTo(object value)
15 {
16 if (value != null)
17 {
18 }
19 return 1;
20 }
21
22 // Token: 0x06000793 RID: 1939 RVA: 0x00012550 File Offset: 0x00010750
23 public int CompareTo(int value)
24 {
25 return ref this;
26 }
27
28 // Token: 0x06000794 RID: 1940 RVA: 0x00012560 File Offset: 0x00010760
29 public override bool Equals(object obj)
30 {
31 if (obj != null)
32 {
33 return;
34 }
35 }
36
37 // Token: 0x06000795 RID: 1941 RVA: 0x0000207A File Offset: 0x0000027A
39 public bool Equals(int obj)
40 {
41 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
42 }
43
44 // Token: 0x06000796 RID: 1942 RVA: 0x0000207A File Offset: 0x0000027A
45 public override int GetHashCode()
46 {
47 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
48 }
49
50 // Token: 0x06000797 RID: 1943 RVA: 0x00012574 File Offset: 0x00010774
51 public override string ToString()
52 {
53 if (!true)
54 {
55 }
56 string text;
57 return text;
58 }
59
60 // Token: 0x06000798 RID: 1944 RVA: 0x00012588 File Offset: 0x00010788
61 public string ToString(string format)
62 {
63 if (format != null)
64 {
65 char rawStringData = format.GetRawStringData();
66 int stringLength = format._stringLength;
67 }
68 if (!true)
69 {
70 }
71 string text;
72 return text;
73 }
74
75 // Token: 0x06000799 RID: 1945 RVA: 0x000125AC File Offset: 0x000107AC
76 public string ToString(IFormatProvider provider)
77 {
78 if (!true)
79 {
80 }
81 string text;
82 return text;
83 }
84
85 // Token: 0x0600079A RID: 1946 RVA: 0x000125C0 File Offset: 0x000107C0
86 public string ToString(string format, IFormatProvider provider)
87 {
88 if (format != null)
89 {
90 char rawStringData = format.GetRawStringData();
91 int stringLength = format._stringLength;
92 }
93 if (!true)
94 {
95 }
96 string text;
97 return text;
98 }
99
100 // Token: 0x0600079B RID: 1947 RVA: 0x000125E4 File Offset: 0x000107E4
101 public bool TryFormat(Span<char> destination, [Out] int charsWritten, [Optional] ReadOnlySpan<char> format, [Optional] IFormatProvider provider)
102 {
103 if (!true)
104 {
105 }
106 bool flag;
107 return flag;
108 }
109
110 // Token: 0x0600079C RID: 1948 RVA: 0x000125F8 File Offset: 0x000107F8
111 public static int Parse(string s)
112 {
115 int num;
116 return num;
117 }
118
119 // Token: 0x0600079D RID: 1949 RVA: 0x00012618 File Offset: 0x00010818
120 public static int Parse(string s, NumberStyles style)
121 {
124 int num;
125 return num;
126 }
127
128 // Token: 0x0600079E RID: 1950 RVA: 0x00012638 File Offset: 0x00010838
129 public static int Parse(string s, IFormatProvider provider)
130 {
132 int num;
133 return num;
134 }
135
136 // Token: 0x0600079F RID: 1951 RVA: 0x00012650 File Offset: 0x00010850
137 public static int Parse(string s, NumberStyles style, IFormatProvider provider)
138 {
140 int num;
141 return num;
142 }
143
144 // Token: 0x060007A0 RID: 1952 RVA: 0x00012668 File Offset: 0x00010868
145 public static int Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, [Optional] IFormatProvider provider)
146 {
148 NumberFormatInfo instance = NumberFormatInfo.GetInstance(provider);
149 int num;
150 return num;
151 }
152
153 // Token: 0x060007A1 RID: 1953 RVA: 0x00012684 File Offset: 0x00010884
154 public static bool TryParse(string s, [Out] int result)
155 {
157 bool flag;
158 return flag;
159 }
160
161 // Token: 0x060007A2 RID: 1954 RVA: 0x000126A0 File Offset: 0x000108A0
162 public static bool TryParse(ReadOnlySpan<char> s, [Out] int result)
163 {
165 bool flag;
166 return flag;
167 }
168
169 // Token: 0x060007A3 RID: 1955 RVA: 0x000126B8 File Offset: 0x000108B8
170 public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, [Out] int result)
171 {
172 bool flag;
173 return flag;
174 }
175
176 // Token: 0x060007A4 RID: 1956 RVA: 0x000126C8 File Offset: 0x000108C8
177 public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider provider, [Out] int result)
178 {
180 NumberFormatInfo instance = NumberFormatInfo.GetInstance(provider);
181 bool flag;
182 return flag;
183 }
184
185 // Token: 0x060007A5 RID: 1957 RVA: 0x000126E4 File Offset: 0x000108E4
187 {
188 return TypeCode.Int32;
189 }
190
191 // Token: 0x060007A6 RID: 1958 RVA: 0x000126F4 File Offset: 0x000108F4
193 {
194 if (!true)
195 {
196 }
197 bool flag;
198 return flag;
199 }
200
201 // Token: 0x060007A7 RID: 1959 RVA: 0x00012708 File Offset: 0x00010908
203 {
204 if (!true)
205 {
206 }
207 char c;
208 return c;
209 }
210
211 // Token: 0x060007A8 RID: 1960 RVA: 0x0001271C File Offset: 0x0001091C
213 {
214 if (!true)
215 {
216 }
217 sbyte b;
218 return b;
219 }
220
221 // Token: 0x060007A9 RID: 1961 RVA: 0x00012730 File Offset: 0x00010930
223 {
224 if (!true)
225 {
226 }
227 byte b;
228 return b;
229 }
230
231 // Token: 0x060007AA RID: 1962 RVA: 0x00012744 File Offset: 0x00010944
233 {
234 if (!true)
235 {
236 }
237 short num;
238 return num;
239 }
240
241 // Token: 0x060007AB RID: 1963 RVA: 0x00012758 File Offset: 0x00010958
243 {
244 if (!true)
245 {
246 }
247 ushort num;
248 return num;
249 }
250
251 // Token: 0x060007AC RID: 1964 RVA: 0x0000207A File Offset: 0x0000027A
253 {
254 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
255 }
256
257 // Token: 0x060007AD RID: 1965 RVA: 0x0001276C File Offset: 0x0001096C
259 {
260 if (!true)
261 {
262 }
263 uint num;
264 return num;
265 }
266
267 // Token: 0x060007AE RID: 1966 RVA: 0x00012780 File Offset: 0x00010980
269 {
270 if (!true)
271 {
272 }
273 long num;
274 return num;
275 }
276
277 // Token: 0x060007AF RID: 1967 RVA: 0x00012794 File Offset: 0x00010994
279 {
280 if (!true)
281 {
282 }
283 ulong num;
284 return num;
285 }
286
287 // Token: 0x060007B0 RID: 1968 RVA: 0x000127A8 File Offset: 0x000109A8
289 {
290 /*
291An exception occurred when decompiling this method (060007B0)
292
293ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single System.Int32::System.IConvertible.ToSingle(System.IFormatProvider)
294
295 ---> System.Exception: Basic block has to end with unconditional control flow.
296{
297 IL_0000:
298 brtrue(IL_0000, ldc.i4:bool(1))
299}
300
301 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
302 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
303 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
304 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
305 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
306 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
307 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
308 --- End of inner exception stack trace ---
309 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
310 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
311*/;
312 }
313
314 // Token: 0x060007B1 RID: 1969 RVA: 0x000127B8 File Offset: 0x000109B8
316 {
317 /*
318An exception occurred when decompiling this method (060007B1)
319
320ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double System.Int32::System.IConvertible.ToDouble(System.IFormatProvider)
321
322 ---> System.Exception: Basic block has to end with unconditional control flow.
323{
324 IL_0000:
325 brtrue(IL_0000, ldc.i4:bool(1))
326}
327
328 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
329 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
330 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
331 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
332 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
333 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
334 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
335 --- End of inner exception stack trace ---
336 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
337 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
338*/;
339 }
340
341 // Token: 0x060007B2 RID: 1970 RVA: 0x000127C8 File Offset: 0x000109C8
343 {
344 if (!true)
345 {
346 }
347 return 1;
348 }
349
350 // Token: 0x060007B3 RID: 1971 RVA: 0x000127DC File Offset: 0x000109DC
352 {
353 /*
354An exception occurred when decompiling this method (060007B3)
355
356ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Int32::System.IConvertible.ToDateTime(System.IFormatProvider)
357
358 ---> System.Exception: Basic block has to end with unconditional control flow.
359{
360 Block_0:
361 stloc:string(var_0_14, call:string(SR::Format, ldstr:string("Invalid cast from '{0}' to '{1}'."), ldstr:string[exp:object]("Int32"), ldstr:string[exp:object]("DateTime")))
362}
363
364 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
365 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
366 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
367 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
368 --- End of inner exception stack trace ---
369 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
370 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
371*/;
372 }
373
374 // Token: 0x060007B4 RID: 1972 RVA: 0x00012800 File Offset: 0x00010A00
376 {
377 object obj;
378 return obj;
379 }
380
381 // Token: 0x0400035E RID: 862
382 private readonly int m_value;
383
384 // Token: 0x0400035F RID: 863
385 public const int MaxValue = 2147483647;
386
387 // Token: 0x04000360 RID: 864
388 public const int MinValue = -2147483648;
389 }
390}
class f__AnonymousType0<< Count > j__TPar
static void ValidateParseStyleInteger(NumberStyles style)
static NumberFormatInfo GetInstance(IFormatProvider formatProvider)
static void ThrowArgumentNullException(ExceptionArgument argument)
double ToDouble(IFormatProvider provider)
DateTime ToDateTime(IFormatProvider provider)
short ToInt16(IFormatProvider provider)
int ToInt32(IFormatProvider provider)
char ToChar(IFormatProvider provider)
float ToSingle(IFormatProvider provider)
ulong ToUInt64(IFormatProvider provider)
ushort ToUInt16(IFormatProvider provider)
decimal ToDecimal(IFormatProvider provider)
bool ToBoolean(IFormatProvider provider)
object ToType(Type conversionType, IFormatProvider provider)
sbyte ToSByte(IFormatProvider provider)
uint ToUInt32(IFormatProvider provider)
byte ToByte(IFormatProvider provider)
long ToInt64(IFormatProvider provider)
TypeCode
Definition TypeCode.cs:7
static int Parse(string s, NumberStyles style, IFormatProvider provider)
Definition Int32.cs:137
override string ToString()
Definition Int32.cs:51
const int MinValue
Definition Int32.cs:388
static int Parse(string s)
Definition Int32.cs:111
readonly int m_value
Definition Int32.cs:382
string ToString(IFormatProvider provider)
Definition Int32.cs:76
static int Parse(string s, IFormatProvider provider)
Definition Int32.cs:129
int CompareTo(int value)
Definition Int32.cs:23
static bool TryParse(string s, NumberStyles style, IFormatProvider provider, [Out] int result)
Definition Int32.cs:170
const int MaxValue
Definition Int32.cs:385
static bool TryParse(string s, [Out] int result)
Definition Int32.cs:154
static int Parse(ReadOnlySpan< char > s, NumberStyles style=NumberStyles.Integer, [Optional] IFormatProvider provider)
Definition Int32.cs:145
static bool TryParse(ReadOnlySpan< char > s, [Out] int result)
Definition Int32.cs:162
override int GetHashCode()
Definition Int32.cs:45
static int Parse(string s, NumberStyles style)
Definition Int32.cs:120
bool TryFormat(Span< char > destination, [Out] int charsWritten, [Optional] ReadOnlySpan< char > format, [Optional] IFormatProvider provider)
Definition Int32.cs:101
TypeCode GetTypeCode()
Definition Int32.cs:186
string ToString(string format, IFormatProvider provider)
Definition Int32.cs:86
int CompareTo(object value)
Definition Int32.cs:14
string ToString(string format)
Definition Int32.cs:61
override bool Equals(object obj)
Definition Int32.cs:29
static bool TryParse(ReadOnlySpan< char > s, NumberStyles style, IFormatProvider provider, [Out] int result)
Definition Int32.cs:177
bool Equals(int obj)
Definition Int32.cs:39