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
Int16.cs
Go to the documentation of this file.
1using System;
6
7namespace System
8{
9 // Token: 0x020000CE RID: 206
12 {
13 // Token: 0x06000774 RID: 1908 RVA: 0x000122F8 File Offset: 0x000104F8
14 public int CompareTo(object value)
15 {
16 if (value != null)
17 {
18 }
19 return 1;
20 }
21
22 // Token: 0x06000775 RID: 1909 RVA: 0x0000207A File Offset: 0x0000027A
23 public int CompareTo(short value)
24 {
25 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27
28 // Token: 0x06000776 RID: 1910 RVA: 0x0001230C File Offset: 0x0001050C
29 public override bool Equals(object obj)
30 {
31 if (obj != null)
32 {
33 return;
34 }
35 }
36
37 // Token: 0x06000777 RID: 1911 RVA: 0x0000207A File Offset: 0x0000027A
39 public bool Equals(short obj)
40 {
41 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
42 }
43
44 // Token: 0x06000778 RID: 1912 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: 0x06000779 RID: 1913 RVA: 0x00012320 File Offset: 0x00010520
51 public override string ToString()
52 {
53 if (!true)
54 {
55 }
56 string text;
57 return text;
58 }
59
60 // Token: 0x0600077A RID: 1914 RVA: 0x00012334 File Offset: 0x00010534
61 public string ToString(IFormatProvider provider)
62 {
63 if (!true)
64 {
65 }
66 string text;
67 return text;
68 }
69
70 // Token: 0x0600077B RID: 1915 RVA: 0x00012348 File Offset: 0x00010548
71 public string ToString(string format, IFormatProvider provider)
72 {
73 int stringLength2;
74 if (format != null)
75 {
76 int stringLength = format._stringLength;
77 long num = 0L;
78 char c = format[(int)num];
79 long num2 = 0L;
80 char c2 = format[(int)num2];
81 char rawStringData = format.GetRawStringData();
82 stringLength2 = format._stringLength;
83 string text;
84 return text;
85 }
86 if (stringLength2 != 0)
87 {
88 }
89 if (!true)
90 {
91 }
92 string text2;
93 return text2;
94 }
95
96 // Token: 0x0600077C RID: 1916 RVA: 0x00012390 File Offset: 0x00010590
97 public bool TryFormat(Span<char> destination, [Out] int charsWritten, [Optional] ReadOnlySpan<char> format, [Optional] IFormatProvider provider)
98 {
99 bool flag;
100 return flag;
101 }
102
103 // Token: 0x0600077D RID: 1917 RVA: 0x000123A0 File Offset: 0x000105A0
104 public static short Parse(string s, IFormatProvider provider)
105 {
107 char c;
108 while (c != '\0')
109 {
110 }
111 short num;
112 return num;
113 }
114
115 // Token: 0x0600077E RID: 1918 RVA: 0x000123B8 File Offset: 0x000105B8
116 public static short Parse(string s, NumberStyles style, IFormatProvider provider)
117 {
119 short num;
120 return num;
121 }
122
123 // Token: 0x0600077F RID: 1919 RVA: 0x000123D0 File Offset: 0x000105D0
125 {
126 if (!true)
127 {
128 return;
129 }
130 }
131
132 // Token: 0x06000780 RID: 1920 RVA: 0x000123E4 File Offset: 0x000105E4
133 public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, [Out] short result)
134 {
135 bool flag;
136 return flag;
137 }
138
139 // Token: 0x06000781 RID: 1921 RVA: 0x000123F4 File Offset: 0x000105F4
140 private static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, NumberFormatInfo info, [Out] short result)
141 {
142 if (!true)
143 {
144 }
145 result.m_value = 1;
146 return true;
147 }
148
149 // Token: 0x06000782 RID: 1922 RVA: 0x00012410 File Offset: 0x00010610
151 {
152 return TypeCode.Int16;
153 }
154
155 // Token: 0x06000783 RID: 1923 RVA: 0x00012420 File Offset: 0x00010620
157 {
158 if (!true)
159 {
160 }
161 bool flag;
162 return flag;
163 }
164
165 // Token: 0x06000784 RID: 1924 RVA: 0x00012434 File Offset: 0x00010634
167 {
168 if (!true)
169 {
170 }
171 char c;
172 return c;
173 }
174
175 // Token: 0x06000785 RID: 1925 RVA: 0x00012448 File Offset: 0x00010648
177 {
178 if (!true)
179 {
180 }
181 sbyte b;
182 return b;
183 }
184
185 // Token: 0x06000786 RID: 1926 RVA: 0x0001245C File Offset: 0x0001065C
187 {
188 if (!true)
189 {
190 }
191 byte b;
192 return b;
193 }
194
195 // Token: 0x06000787 RID: 1927 RVA: 0x0000207A File Offset: 0x0000027A
197 {
198 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
199 }
200
201 // Token: 0x06000788 RID: 1928 RVA: 0x00012470 File Offset: 0x00010670
203 {
204 if (!true)
205 {
206 }
207 ushort num;
208 return num;
209 }
210
211 // Token: 0x06000789 RID: 1929 RVA: 0x00012484 File Offset: 0x00010684
213 {
214 if (!true)
215 {
216 }
217 int num;
218 return num;
219 }
220
221 // Token: 0x0600078A RID: 1930 RVA: 0x00012498 File Offset: 0x00010698
223 {
224 if (!true)
225 {
226 }
227 uint num;
228 return num;
229 }
230
231 // Token: 0x0600078B RID: 1931 RVA: 0x000124AC File Offset: 0x000106AC
233 {
234 if (!true)
235 {
236 }
237 long num;
238 return num;
239 }
240
241 // Token: 0x0600078C RID: 1932 RVA: 0x000124C0 File Offset: 0x000106C0
243 {
244 if (!true)
245 {
246 }
247 ulong num;
248 return num;
249 }
250
251 // Token: 0x0600078D RID: 1933 RVA: 0x000124D4 File Offset: 0x000106D4
253 {
254 /*
255An exception occurred when decompiling this method (0600078D)
256
257ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single System.Int16::System.IConvertible.ToSingle(System.IFormatProvider)
258
259 ---> System.Exception: Basic block has to end with unconditional control flow.
260{
261 IL_0000:
262 brtrue(IL_0000, ldc.i4:bool(1))
263}
264
265 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
266 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
267 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
268 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
269 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
270 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
271 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
272 --- End of inner exception stack trace ---
273 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
274 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
275*/;
276 }
277
278 // Token: 0x0600078E RID: 1934 RVA: 0x000124E4 File Offset: 0x000106E4
280 {
281 /*
282An exception occurred when decompiling this method (0600078E)
283
284ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double System.Int16::System.IConvertible.ToDouble(System.IFormatProvider)
285
286 ---> System.Exception: Basic block has to end with unconditional control flow.
287{
288 IL_0000:
289 brtrue(IL_0000, ldc.i4:bool(1))
290}
291
292 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
293 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
294 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
295 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
296 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
297 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
298 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
299 --- End of inner exception stack trace ---
300 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
301 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
302*/;
303 }
304
305 // Token: 0x0600078F RID: 1935 RVA: 0x000124F4 File Offset: 0x000106F4
307 {
308 if (!true)
309 {
310 }
311 return 1;
312 }
313
314 // Token: 0x06000790 RID: 1936 RVA: 0x00012508 File Offset: 0x00010708
316 {
317 /*
318An exception occurred when decompiling this method (06000790)
319
320ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Int16::System.IConvertible.ToDateTime(System.IFormatProvider)
321
322 ---> System.Exception: Basic block has to end with unconditional control flow.
323{
324 Block_0:
325 stloc:string(var_0_14, call:string(SR::Format, ldstr:string("Invalid cast from '{0}' to '{1}'."), ldstr:string[exp:object]("Int16"), ldstr:string[exp:object]("DateTime")))
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.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
330 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
331 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
332 --- End of inner exception stack trace ---
333 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
334 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
335*/;
336 }
337
338 // Token: 0x06000791 RID: 1937 RVA: 0x0001252C File Offset: 0x0001072C
340 {
341 object obj;
342 return obj;
343 }
344
345 // Token: 0x0400035B RID: 859
346 private readonly short m_value;
347
348 // Token: 0x0400035C RID: 860
349 public const short MaxValue = 32767;
350
351 // Token: 0x0400035D RID: 861
352 public const short MinValue = -32768;
353 }
354}
class f__AnonymousType0<< Count > j__TPar
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 short Parse(ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info)
Definition Int16.cs:124
override bool Equals(object obj)
Definition Int16.cs:29
static bool TryParse(string s, NumberStyles style, IFormatProvider provider, [Out] short result)
Definition Int16.cs:133
static short Parse(string s, IFormatProvider provider)
Definition Int16.cs:104
const short MinValue
Definition Int16.cs:352
static bool TryParse(ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info, [Out] short result)
Definition Int16.cs:140
int CompareTo(short value)
Definition Int16.cs:23
readonly short m_value
Definition Int16.cs:346
override int GetHashCode()
Definition Int16.cs:45
string ToString(IFormatProvider provider)
Definition Int16.cs:61
bool Equals(short obj)
Definition Int16.cs:39
static short Parse(string s, NumberStyles style, IFormatProvider provider)
Definition Int16.cs:116
bool TryFormat(Span< char > destination, [Out] int charsWritten, [Optional] ReadOnlySpan< char > format, [Optional] IFormatProvider provider)
Definition Int16.cs:97
int CompareTo(object value)
Definition Int16.cs:14
override string ToString()
Definition Int16.cs:51
string ToString(string format, IFormatProvider provider)
Definition Int16.cs:71
const short MaxValue
Definition Int16.cs:349
TypeCode GetTypeCode()
Definition Int16.cs:150