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
UInt16.cs
Go to the documentation of this file.
1using System;
6
7namespace System
8{
9 // Token: 0x02000114 RID: 276
10 [CLSCompliant(false)]
13 {
14 // Token: 0x06000AA6 RID: 2726 RVA: 0x00018184 File Offset: 0x00016384
15 public int CompareTo(object value)
16 {
17 if (value != null)
18 {
19 }
20 return 1;
21 }
22
23 // Token: 0x06000AA7 RID: 2727 RVA: 0x0000207A File Offset: 0x0000027A
24 public int CompareTo(ushort value)
25 {
26 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
27 }
28
29 // Token: 0x06000AA8 RID: 2728 RVA: 0x00018198 File Offset: 0x00016398
30 public override bool Equals(object obj)
31 {
32 if (obj != null)
33 {
34 return;
35 }
36 }
37
38 // Token: 0x06000AA9 RID: 2729 RVA: 0x0000207A File Offset: 0x0000027A
40 public bool Equals(ushort obj)
41 {
42 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
43 }
44
45 // Token: 0x06000AAA RID: 2730 RVA: 0x0000207A File Offset: 0x0000027A
46 public override int GetHashCode()
47 {
48 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
49 }
50
51 // Token: 0x06000AAB RID: 2731 RVA: 0x000181AC File Offset: 0x000163AC
52 public override string ToString()
53 {
54 if (!true)
55 {
56 }
57 string text;
58 return text;
59 }
60
61 // Token: 0x06000AAC RID: 2732 RVA: 0x000181C0 File Offset: 0x000163C0
62 public string ToString(IFormatProvider provider)
63 {
64 if (!true)
65 {
66 }
67 string text;
68 return text;
69 }
70
71 // Token: 0x06000AAD RID: 2733 RVA: 0x000181D4 File Offset: 0x000163D4
72 public string ToString(string format)
73 {
74 if (format != null)
75 {
76 char rawStringData = format.GetRawStringData();
77 int stringLength = format._stringLength;
78 }
79 if (!true)
80 {
81 }
82 string text;
83 return text;
84 }
85
86 // Token: 0x06000AAE RID: 2734 RVA: 0x000181F8 File Offset: 0x000163F8
87 public string ToString(string format, IFormatProvider provider)
88 {
89 if (format != null)
90 {
91 char rawStringData = format.GetRawStringData();
92 int stringLength = format._stringLength;
93 }
94 if (!true)
95 {
96 }
97 string text;
98 return text;
99 }
100
101 // Token: 0x06000AAF RID: 2735 RVA: 0x0001821C File Offset: 0x0001641C
102 public bool TryFormat(Span<char> destination, [Out] int charsWritten, [Optional] ReadOnlySpan<char> format, [Optional] IFormatProvider provider)
103 {
104 if (!true)
105 {
106 }
107 bool flag;
108 return flag;
109 }
110
111 // Token: 0x06000AB0 RID: 2736 RVA: 0x00018230 File Offset: 0x00016430
112 [CLSCompliant(false)]
113 public static ushort Parse(string s)
114 {
116 ushort num;
117 return num;
118 }
119
120 // Token: 0x06000AB1 RID: 2737 RVA: 0x00018250 File Offset: 0x00016450
121 [CLSCompliant(false)]
122 public static ushort Parse(string s, IFormatProvider provider)
123 {
124 ushort num;
125 return num;
126 }
127
128 // Token: 0x06000AB2 RID: 2738 RVA: 0x00018268 File Offset: 0x00016468
129 [CLSCompliant(false)]
130 public static ushort Parse(string s, NumberStyles style, IFormatProvider provider)
131 {
132 ushort num;
133 return num;
134 }
135
136 // Token: 0x06000AB3 RID: 2739 RVA: 0x00018280 File Offset: 0x00016480
138 {
139 if (!true)
140 {
141 return;
142 }
143 }
144
145 // Token: 0x06000AB4 RID: 2740 RVA: 0x00018294 File Offset: 0x00016494
146 [CLSCompliant(false)]
147 public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, [Out] ushort result)
148 {
149 bool flag;
150 return flag;
151 }
152
153 // Token: 0x06000AB5 RID: 2741 RVA: 0x000182A4 File Offset: 0x000164A4
154 private static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, NumberFormatInfo info, [Out] ushort result)
155 {
156 if (!true)
157 {
158 }
159 result.m_value = 1;
160 return true;
161 }
162
163 // Token: 0x06000AB6 RID: 2742 RVA: 0x000182C0 File Offset: 0x000164C0
165 {
166 return TypeCode.UInt16;
167 }
168
169 // Token: 0x06000AB7 RID: 2743 RVA: 0x000182D0 File Offset: 0x000164D0
171 {
172 if (!true)
173 {
174 }
175 bool flag;
176 return flag;
177 }
178
179 // Token: 0x06000AB8 RID: 2744 RVA: 0x000182E4 File Offset: 0x000164E4
181 {
182 if (!true)
183 {
184 }
185 char c;
186 return c;
187 }
188
189 // Token: 0x06000AB9 RID: 2745 RVA: 0x000182F8 File Offset: 0x000164F8
191 {
192 if (!true)
193 {
194 }
195 sbyte b;
196 return b;
197 }
198
199 // Token: 0x06000ABA RID: 2746 RVA: 0x0001830C File Offset: 0x0001650C
201 {
202 if (!true)
203 {
204 }
205 byte b;
206 return b;
207 }
208
209 // Token: 0x06000ABB RID: 2747 RVA: 0x00018320 File Offset: 0x00016520
211 {
212 if (!true)
213 {
214 }
215 short num;
216 return num;
217 }
218
219 // Token: 0x06000ABC RID: 2748 RVA: 0x0000207A File Offset: 0x0000027A
221 {
222 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
223 }
224
225 // Token: 0x06000ABD RID: 2749 RVA: 0x00018334 File Offset: 0x00016534
227 {
228 if (!true)
229 {
230 }
231 int num;
232 return num;
233 }
234
235 // Token: 0x06000ABE RID: 2750 RVA: 0x00018348 File Offset: 0x00016548
237 {
238 if (!true)
239 {
240 }
241 uint num;
242 return num;
243 }
244
245 // Token: 0x06000ABF RID: 2751 RVA: 0x0001835C File Offset: 0x0001655C
247 {
248 if (!true)
249 {
250 }
251 long num;
252 return num;
253 }
254
255 // Token: 0x06000AC0 RID: 2752 RVA: 0x00018370 File Offset: 0x00016570
257 {
258 if (!true)
259 {
260 }
261 ulong num;
262 return num;
263 }
264
265 // Token: 0x06000AC1 RID: 2753 RVA: 0x00018384 File Offset: 0x00016584
267 {
268 /*
269An exception occurred when decompiling this method (06000AC1)
270
271ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single System.UInt16::System.IConvertible.ToSingle(System.IFormatProvider)
272
273 ---> System.Exception: Basic block has to end with unconditional control flow.
274{
275 IL_0000:
276 brtrue(IL_0000, ldc.i4:bool(1))
277}
278
279 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
280 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
281 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
282 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
283 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
284 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
285 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
286 --- End of inner exception stack trace ---
287 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
288 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
289*/;
290 }
291
292 // Token: 0x06000AC2 RID: 2754 RVA: 0x00018394 File Offset: 0x00016594
294 {
295 /*
296An exception occurred when decompiling this method (06000AC2)
297
298ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double System.UInt16::System.IConvertible.ToDouble(System.IFormatProvider)
299
300 ---> System.Exception: Basic block has to end with unconditional control flow.
301{
302 IL_0000:
303 brtrue(IL_0000, ldc.i4:bool(1))
304}
305
306 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
307 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
308 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
309 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
310 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
311 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
312 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
313 --- End of inner exception stack trace ---
314 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
315 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
316*/;
317 }
318
319 // Token: 0x06000AC3 RID: 2755 RVA: 0x000183A4 File Offset: 0x000165A4
321 {
322 if (!true)
323 {
324 }
325 return 1;
326 }
327
328 // Token: 0x06000AC4 RID: 2756 RVA: 0x000183B8 File Offset: 0x000165B8
330 {
331 /*
332An exception occurred when decompiling this method (06000AC4)
333
334ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.UInt16::System.IConvertible.ToDateTime(System.IFormatProvider)
335
336 ---> System.Exception: Basic block has to end with unconditional control flow.
337{
338 Block_0:
339 stloc:string(var_0_14, call:string(SR::Format, ldstr:string("DateTime"), ldstr:string[exp:object]("UInt16"), ldstr:string[exp:object]("DateTime")))
340}
341
342 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
343 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
344 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
345 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
346 --- End of inner exception stack trace ---
347 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
348 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
349*/;
350 }
351
352 // Token: 0x06000AC5 RID: 2757 RVA: 0x000183DC File Offset: 0x000165DC
354 {
355 object obj;
356 return obj;
357 }
358
359 // Token: 0x040003F6 RID: 1014
360 private readonly ushort m_value;
361
362 // Token: 0x040003F7 RID: 1015
363 public const ushort MaxValue = 65535;
364
365 // Token: 0x040003F8 RID: 1016
366 public const ushort MinValue = 0;
367 }
368}
class f__AnonymousType0<< Count > j__TPar
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
bool TryFormat(Span< char > destination, [Out] int charsWritten, [Optional] ReadOnlySpan< char > format, [Optional] IFormatProvider provider)
Definition UInt16.cs:102
override string ToString()
Definition UInt16.cs:52
override int GetHashCode()
Definition UInt16.cs:46
int CompareTo(object value)
Definition UInt16.cs:15
bool Equals(ushort obj)
Definition UInt16.cs:40
string ToString(string format)
Definition UInt16.cs:72
static bool TryParse(string s, NumberStyles style, IFormatProvider provider, [Out] ushort result)
Definition UInt16.cs:147
const ushort MinValue
Definition UInt16.cs:366
static ushort Parse(string s)
Definition UInt16.cs:113
static ushort Parse(ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info)
Definition UInt16.cs:137
override bool Equals(object obj)
Definition UInt16.cs:30
const ushort MaxValue
Definition UInt16.cs:363
static ushort Parse(string s, NumberStyles style, IFormatProvider provider)
Definition UInt16.cs:130
readonly ushort m_value
Definition UInt16.cs:360
int CompareTo(ushort value)
Definition UInt16.cs:24
string ToString(IFormatProvider provider)
Definition UInt16.cs:62
static bool TryParse(ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info, [Out] ushort result)
Definition UInt16.cs:154
string ToString(string format, IFormatProvider provider)
Definition UInt16.cs:87
TypeCode GetTypeCode()
Definition UInt16.cs:164
static ushort Parse(string s, IFormatProvider provider)
Definition UInt16.cs:122