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

◆ ToDateTime()

DateTime System.Globalization.GregorianCalendarHelper.ToDateTime ( int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int era )
inline

Definition at line 317 of file GregorianCalendarHelper.cs.

318 {
319 /*
320An exception occurred when decompiling this method (06002BC8)
321
322ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Globalization.GregorianCalendarHelper::ToDateTime(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
323
324 ---> System.Exception: Basic block has to end with unconditional control flow.
325{
326 Block_0:
327 stloc:int32(var_0_01, ldc.i4:int32(1))
328 stloc:int32(var_1_0B, call:int32(GregorianCalendarHelper::GetYearOffset, ldloc:GregorianCalendarHelper(this), ldloc:int32(year), ldloc:int32(month), ldloc:int32[exp:bool](var_0_01)))
329 stloc:int64(var_2_14, call:int64(GregorianCalendarHelper::DateToTicks, ldloc:int32(year), ldloc:int32(month), ldloc:int32(day)))
330 stloc:int64(var_3_22, call:int64(GregorianCalendarHelper::TimeToTicks, ldloc:int32(hour), ldloc:int32(minute), ldloc:int32(second), ldloc:int32(millisecond)))
331 call:void(GregorianCalendarHelper::CheckTicksRange, ldloc:GregorianCalendarHelper(this), ldloc:int32[exp:int64](millisecond))
332}
333
334 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
335 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
336 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
337 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
338 --- End of inner exception stack trace ---
339 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
340 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
341*/;
342 }