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

◆ Convert()

static object Newtonsoft.Json.Utilities.ConvertUtils.Convert ( object initialValue,
CultureInfo culture,
Type targetType )
inlinestatic

Definition at line 115 of file ConvertUtils.cs.

116 {
117 /*
118An exception occurred when decompiling this method (06000324)
119
120ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object Newtonsoft.Json.Utilities.ConvertUtils::Convert(System.Object,System.Globalization.CultureInfo,System.Type)
121
122 ---> System.Exception: Basic block has to end with unconditional control flow.
123{
124 IL_0006:
125 stloc:CultureInfo(var_2_0D, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
126 stloc:Type(var_3_14, call:Type(object::GetType, ldloc:CultureInfo[exp:object](var_2_0D)))
127 stloc:string(var_4_22, call:string(StringUtils::FormatWith, ldstr:string("Can not convert null {0} into non-nullable {1}."), ldloc:CultureInfo[exp:IFormatProvider](var_2_0D), ldloc:Type[exp:object](var_3_14), ldloc:CultureInfo[exp:object](culture)))
128 stloc:CultureInfo(var_6_2C, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
129 stloc:string(var_8_3E, call:string(StringUtils::FormatWith, ldstr:string("Can not convert from {0} to {1}."), ldloc:CultureInfo[exp:IFormatProvider](var_6_2C), ldloc:Type[exp:object](var_7), ldloc:string[exp:object](var_4_22)))
130 stloc:CultureInfo(var_10_48, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
131 stloc:string(var_11_58, call:string(StringUtils::FormatWith, ldstr:string("Target type {0} is not a value type or a non-abstract class."), ldloc:CultureInfo[exp:IFormatProvider](var_10_48), ldloc:string[exp:object](var_8_3E)))
132}
133
134 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
135 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
136 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
137 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
138 --- End of inner exception stack trace ---
139 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
140 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
141*/;
142 }