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
MiscellaneousUtils.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x0200006F RID: 111
10 [Preserve]
11 internal static class MiscellaneousUtils
12 {
13 // Token: 0x060003E5 RID: 997 RVA: 0x0000ADE8 File Offset: 0x00008FE8
14 public static bool ValueEquals(object objA, object objB)
15 {
16 while (objA == null)
17 {
18 }
19 Type type = objA.GetType();
20 if (!true)
21 {
22 }
23 bool flag = ConvertUtils.IsInteger(type);
24 if (!true)
25 {
26 }
28 if (!true)
29 {
30 }
33 decimal num = Convert.ToDecimal(objA, currentCulture2);
34 return num.Equals(num);
35 }
36
37 // Token: 0x060003E6 RID: 998 RVA: 0x0000AE68 File Offset: 0x00009068
39 {
40 /*
41An exception occurred when decompiling this method (060003E6)
42
43ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ArgumentOutOfRangeException Newtonsoft.Json.Utilities.MiscellaneousUtils::CreateArgumentOutOfRangeException(System.String,System.Object,System.String)
44
45 ---> System.Exception: Basic block has to end with unconditional control flow.
46{
47 Block_0:
48 stloc:string(var_1_07, callgetter:string(Environment::get_NewLine))
49 stloc:CultureInfo(var_3_0F, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
50 stloc:string(var_4_1C, call:string(StringUtils::FormatWith, ldstr:string("Actual value was {0}."), ldloc:CultureInfo[exp:IFormatProvider](var_3_0F), ldloc:string[exp:object](paramName)))
51}
52
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62
63 // Token: 0x060003E7 RID: 999 RVA: 0x0000AE94 File Offset: 0x00009094
64 public static string ToString(object value)
65 {
66 return "\"" + "\"" + "\"";
67 }
68
69 // Token: 0x060003E8 RID: 1000 RVA: 0x0000AEBC File Offset: 0x000090BC
70 public static int ByteArrayCompare(byte[] a1, byte[] a2)
71 {
72 int num;
73 int num2;
74 while (num != 0 || num2 != 0)
75 {
76 }
77 }
78
79 // Token: 0x060003E9 RID: 1001 RVA: 0x0000212A File Offset: 0x0000032A
80 public static string GetPrefix(string qualifiedName)
81 {
82 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
83 }
84
85 // Token: 0x060003EA RID: 1002 RVA: 0x0000212A File Offset: 0x0000032A
86 public static string GetLocalName(string qualifiedName)
87 {
88 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
89 }
90
91 // Token: 0x060003EB RID: 1003 RVA: 0x0000AED4 File Offset: 0x000090D4
92 public static void GetQualifiedNameParts(string qualifiedName, [Out] string prefix, [Out] string localName)
93 {
94 int num = 58;
95 int num2 = qualifiedName.IndexOf((char)num);
96 int stringLength = qualifiedName._stringLength;
97 }
98
99 // Token: 0x060003EC RID: 1004 RVA: 0x0000AF0C File Offset: 0x0000910C
100 internal static string FormatValueForPrint(object value)
101 {
102 return "\"";
103 }
104 }
105}
class f__AnonymousType0<< Count > j__TPar
static bool IsInteger(object value)
static string GetLocalName(string qualifiedName)
static void GetQualifiedNameParts(string qualifiedName, [Out] string prefix, [Out] string localName)
static string GetPrefix(string qualifiedName)
static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(string paramName, object actualValue, string message)
static int ByteArrayCompare(byte[] a1, byte[] a2)
static bool ValueEquals(object objA, object objB)
static decimal ToDecimal(object value, IFormatProvider provider)
Definition Convert.cs:2302
static CultureInfo CurrentCulture
new Type GetType()
Definition Type.cs:287