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
XsdDuration.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Xml.Schema
6{
7 // Token: 0x0200016D RID: 365
8 internal struct XsdDuration
9 {
10 // Token: 0x06000C90 RID: 3216 RVA: 0x00021358 File Offset: 0x0001F558
11 public XsdDuration(bool isNegative, int years, int months, int days, int hours, int minutes, int seconds, int nanoseconds)
12 {
19 }
20
21 // Token: 0x06000C91 RID: 3217 RVA: 0x0002139C File Offset: 0x0001F59C
23 {
24 long num = -2004318072L;
25 this.seconds = (int)num;
26 }
27
28 // Token: 0x06000C92 RID: 3218 RVA: 0x000213B8 File Offset: 0x0001F5B8
32
33 // Token: 0x06000C93 RID: 3219 RVA: 0x000213C8 File Offset: 0x0001F5C8
35 {
36 Exception ex;
37 while (ex != null)
38 {
39 }
43 }
44
45 // Token: 0x17000345 RID: 837
46 // (get) Token: 0x06000C94 RID: 3220 RVA: 0x000213F0 File Offset: 0x0001F5F0
47 public bool IsNegative
48 {
49 get
50 {
51 /*
52An exception occurred when decompiling this method (06000C94)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.Schema.XsdDuration::get_IsNegative()
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 stloc:uint32(var_0_06, ldfld:uint32(XsdDuration::nanoseconds, ldloc:valuetype System.Xml.Schema.XsdDuration&(this)))
60}
61
62 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
63 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
64 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
65 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
66 --- End of inner exception stack trace ---
67 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
68 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
69*/;
70 }
71 }
72
73 // Token: 0x17000346 RID: 838
74 // (get) Token: 0x06000C95 RID: 3221 RVA: 0x00003FFD File Offset: 0x000021FD
75 public int Years
76 {
77 get
78 {
79 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
80 }
81 }
82
83 // Token: 0x17000347 RID: 839
84 // (get) Token: 0x06000C96 RID: 3222 RVA: 0x00021404 File Offset: 0x0001F604
85 public int Months
86 {
87 get
88 {
89 return this.months;
90 }
91 }
92
93 // Token: 0x17000348 RID: 840
94 // (get) Token: 0x06000C97 RID: 3223 RVA: 0x00021418 File Offset: 0x0001F618
95 public int Days
96 {
97 get
98 {
99 return this.days;
100 }
101 }
102
103 // Token: 0x17000349 RID: 841
104 // (get) Token: 0x06000C98 RID: 3224 RVA: 0x0002142C File Offset: 0x0001F62C
105 public int Hours
106 {
107 get
108 {
109 return this.hours;
110 }
111 }
112
113 // Token: 0x1700034A RID: 842
114 // (get) Token: 0x06000C99 RID: 3225 RVA: 0x00021440 File Offset: 0x0001F640
115 public int Minutes
116 {
117 get
118 {
119 return this.minutes;
120 }
121 }
122
123 // Token: 0x1700034B RID: 843
124 // (get) Token: 0x06000C9A RID: 3226 RVA: 0x00021454 File Offset: 0x0001F654
125 public int Seconds
126 {
127 get
128 {
129 return this.seconds;
130 }
131 }
132
133 // Token: 0x1700034C RID: 844
134 // (get) Token: 0x06000C9B RID: 3227 RVA: 0x00021468 File Offset: 0x0001F668
135 public int Nanoseconds
136 {
137 get
138 {
139 /*
140An exception occurred when decompiling this method (06000C9B)
141
142ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Xml.Schema.XsdDuration::get_Nanoseconds()
143
144 ---> System.Exception: Basic block has to end with unconditional control flow.
145{
146 Block_0:
147 stloc:uint32(var_0_06, ldfld:uint32(XsdDuration::nanoseconds, ldloc:valuetype System.Xml.Schema.XsdDuration&(this)))
148}
149
150 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
151 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
152 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
153 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
154 --- End of inner exception stack trace ---
155 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
156 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
157*/;
158 }
159 }
160
161 // Token: 0x06000C9C RID: 3228 RVA: 0x0002147C File Offset: 0x0001F67C
163 {
164 Exception ex;
165 while (ex != null)
166 {
167 }
169 return timeSpan;
170 }
171
172 // Token: 0x06000C9D RID: 3229 RVA: 0x00021490 File Offset: 0x0001F690
173 internal Exception TryToTimeSpan([Out] TimeSpan result)
174 {
175 Exception ex;
176 return ex;
177 }
178
179 // Token: 0x06000C9E RID: 3230 RVA: 0x000214A0 File Offset: 0x0001F6A0
181 {
182 uint num = this.nanoseconds;
183 long num2 = 32768L;
185 int num3 = 38528;
186 uint num4 = this.nanoseconds;
187 result._ticks = (long)num3;
188 throw new OverflowException();
189 }
190
191 // Token: 0x06000C9F RID: 3231 RVA: 0x000215A4 File Offset: 0x0001F7A4
192 public override string ToString()
193 {
194 string text;
195 return text;
196 }
197
198 // Token: 0x06000CA0 RID: 3232 RVA: 0x000215B4 File Offset: 0x0001F7B4
200 {
201 uint num = this.nanoseconds;
202 if (num == 0U)
203 {
204 }
205 int num2 = this.months;
206 if (num2 != 0)
207 {
208 if (num == 0U)
209 {
210 }
211 string text = XmlConvert.ToString(num2);
212 }
213 int num3 = this.days;
214 if (num3 != 0)
215 {
216 if ("0M" == null)
217 {
218 }
219 string text2 = XmlConvert.ToString(num3);
220 }
221 uint num4;
222 if (this.hours == 0 && this.minutes == 0 && this.seconds == 0)
223 {
224 num4 = this.nanoseconds;
225 }
226 int num5 = this.hours;
227 if (num5 != 0)
228 {
229 if (num4 == 0U)
230 {
231 }
232 string text3 = XmlConvert.ToString(num5);
233 }
234 int num6 = this.minutes;
235 if (num6 != 0)
236 {
237 if (num4 == 0U)
238 {
239 }
240 string text4 = XmlConvert.ToString(num6);
241 }
242 int num7 = this.seconds;
243 if (num4 != 0U)
244 {
245 if (num4 == 0U)
246 {
247 }
248 string text5 = XmlConvert.ToString(num7);
249 if (num2 != 0)
250 {
251 }
252 return;
253 }
254 }
255
256 // Token: 0x06000CA1 RID: 3233 RVA: 0x000216A4 File Offset: 0x0001F8A4
257 internal static Exception TryParse(string s, [Out] XsdDuration result)
258 {
259 Exception ex;
260 return ex;
261 }
262
263 // Token: 0x06000CA2 RID: 3234 RVA: 0x000216B4 File Offset: 0x0001F8B4
264 internal static Exception TryParse(string s, XsdDuration.DurationType durationType, [Out] XsdDuration result)
265 {
266 string text;
267 int stringLength = text._stringLength;
268 long num = 0L;
269 char c = text[(int)num];
270 int num2 = 1;
271 char c2 = text[num2];
272 string text2;
273 if (text2 == null || text == null || text != null)
274 {
275 string text3;
276 char c3 = text3[43159552];
277 char c4 = text3[43159552];
278 string text4;
279 while (text4 != null)
280 {
281 }
282 char c5 = text3[43159552];
283 string text5;
284 while (text5 != null)
285 {
286 }
287 char c6 = text3[43159552];
288 string text6;
289 while (text6 != null)
290 {
291 }
292 char c7 = text3[43159552];
293 string text7;
294 while (text7 != null)
295 {
296 }
297 char c8 = text3[43159552];
298 string text8;
299 while (text8 != null)
300 {
301 }
302 char c9 = text3[43159552];
303 string text9;
304 while (text9 != null)
305 {
306 }
307 string text10;
308 while (text10 != null)
309 {
310 }
311 int num3 = 1;
312 char c10 = text3[43159552];
313 int num4 = 9;
314 char c11 = text3[-1073741824];
315 if (num3 == 0 || num4 == 0)
316 {
317 }
318 if (text3 == null || text3 != null)
319 {
320 }
321 }
322 throw new ArrayTypeMismatchException();
323 }
324
325 // Token: 0x06000CA3 RID: 3235 RVA: 0x000217B4 File Offset: 0x0001F9B4
326 private static string TryParseDigits(string s, int offset, bool eatDigits, [Out] int result, [Out] int numDigits)
327 {
328 return "Value '{0}' was either too large or too small for {1}.";
329 }
330
331 // Token: 0x04000673 RID: 1651
332 private int years;
333
334 // Token: 0x04000674 RID: 1652
335 private int months;
336
337 // Token: 0x04000675 RID: 1653
338 private int days;
339
340 // Token: 0x04000676 RID: 1654
341 private int hours;
342
343 // Token: 0x04000677 RID: 1655
344 private int minutes;
345
346 // Token: 0x04000678 RID: 1656
347 private int seconds;
348
349 // Token: 0x04000679 RID: 1657
350 private uint nanoseconds;
351
352 // Token: 0x0200016E RID: 366
353 private enum Parts
354 {
355 // Token: 0x0400067B RID: 1659
356 HasNone,
357 // Token: 0x0400067C RID: 1660
358 HasYears,
359 // Token: 0x0400067D RID: 1661
360 HasMonths,
361 // Token: 0x0400067E RID: 1662
362 HasDays = 4,
363 // Token: 0x0400067F RID: 1663
364 HasHours = 8,
365 // Token: 0x04000680 RID: 1664
366 HasMinutes = 16,
367 // Token: 0x04000681 RID: 1665
368 HasSeconds = 32
369 }
370
371 // Token: 0x0200016F RID: 367
372 public enum DurationType
373 {
374 // Token: 0x04000683 RID: 1667
375 Duration,
376 // Token: 0x04000684 RID: 1668
378 // Token: 0x04000685 RID: 1669
380 }
381 }
382}
class f__AnonymousType0<< Count > j__TPar
static readonly long
static string ToString(bool value)
TimeSpan ToTimeSpan(XsdDuration.DurationType durationType)
static Exception TryParse(string s, XsdDuration.DurationType durationType, [Out] XsdDuration result)
static Exception TryParse(string s, [Out] XsdDuration result)
XsdDuration(TimeSpan timeSpan, XsdDuration.DurationType durationType)
static string TryParseDigits(string s, int offset, bool eatDigits, [Out] int result, [Out] int numDigits)
Exception TryToTimeSpan([Out] TimeSpan result)
XsdDuration(bool isNegative, int years, int months, int days, int hours, int minutes, int seconds, int nanoseconds)
string ToString(XsdDuration.DurationType durationType)
XsdDuration(TimeSpan timeSpan)
XsdDuration(string s, XsdDuration.DurationType durationType)
Exception TryToTimeSpan(XsdDuration.DurationType durationType, [Out] TimeSpan result)