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

◆ ToFourDigitYear()

int System.Globalization.GregorianCalendarHelper.ToFourDigitYear ( int year,
int twoDigitYearMax )
inline

Definition at line 345 of file GregorianCalendarHelper.cs.

346 {
347 /*
348An exception occurred when decompiling this method (06002BC9)
349
350ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Globalization.GregorianCalendarHelper::ToFourDigitYear(System.Int32,System.Int32)
351
352 ---> System.Exception: Basic block has to end with unconditional control flow.
353{
354 Block_0:
355 stloc:int32(var_0_06, ldfld:int32(GregorianCalendarHelper::m_minYear, ldloc:GregorianCalendarHelper(this)))
356 stloc:int32(var_1_0D, ldfld:int32(GregorianCalendarHelper::m_maxYear, ldloc:GregorianCalendarHelper(this)))
357 stloc:CultureInfo(var_3_15, callgetter:CultureInfo(CultureInfo::get_CurrentCulture))
358 stloc:string(var_4_20, call:string(Environment::GetResourceString, ldstr:string("Valid values are between {0} and {1}, inclusive.")))
359 stloc:int32(var_5_28, ldfld:int32(GregorianCalendarHelper::m_minYear, ldloc:GregorianCalendarHelper(this)))
360 stloc:int32(var_6_30, ldfld:int32(GregorianCalendarHelper::m_maxYear, ldloc:GregorianCalendarHelper(this)))
361 stloc:string(var_8_3C, call:string(Environment::GetResourceString, ldstr:string("Positive number required.")))
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 }