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
OrdinalComparer.cs
Go to the documentation of this file.
1using System;
3
4namespace System
5{
6 // Token: 0x020000FF RID: 255
9 {
10 // Token: 0x06000991 RID: 2449 RVA: 0x00017070 File Offset: 0x00015270
12 {
13 if (!true)
14 {
15 }
16 base..ctor();
17 }
18
19 // Token: 0x06000992 RID: 2450 RVA: 0x00017088 File Offset: 0x00015288
20 public override int Compare(string x, string y)
21 {
22 if (x == null || y == null)
23 {
24 return 1;
25 }
26 if (this._ignoreCase)
27 {
28 return string.Compare(x, y, StringComparison.OrdinalIgnoreCase);
29 }
30 return string.CompareOrdinal(y, y);
31 }
32
33 // Token: 0x06000993 RID: 2451 RVA: 0x000170B8 File Offset: 0x000152B8
34 public override bool Equals(string x, string y)
35 {
36 if (x != null && y != null)
37 {
38 if (!this._ignoreCase)
39 {
40 return y.Equals(y);
41 }
42 int stringLength = x._stringLength;
43 int stringLength2 = y._stringLength;
44 int num = string.Compare(x, y, StringComparison.OrdinalIgnoreCase);
45 }
46 return true;
47 }
48
49 // Token: 0x06000994 RID: 2452 RVA: 0x000170F8 File Offset: 0x000152F8
50 public override int GetHashCode(string obj)
51 {
52 if (obj != null && this._ignoreCase)
53 {
55 }
56 }
57
58 // Token: 0x06000995 RID: 2453 RVA: 0x00017118 File Offset: 0x00015318
59 public override bool Equals(object obj)
60 {
61 /*
62An exception occurred when decompiling this method (06000995)
63
64ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.OrdinalComparer::Equals(System.Object)
65
66 ---> System.Exception: Basic block has to end with unconditional control flow.
67{
68 IL_0003:
69 stloc:bool(var_1_0B, ldfld:bool(OrdinalComparer::_ignoreCase, ldloc:OrdinalComparer(this)))
70}
71
72 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
73 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
74 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
75 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
76 --- End of inner exception stack trace ---
77 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
78 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
79*/;
80 }
81
82 // Token: 0x06000996 RID: 2454 RVA: 0x00017130 File Offset: 0x00015330
83 public override int GetHashCode()
84 {
85 bool ignoreCase = this._ignoreCase;
86 return "OrdinalComparer";
87 }
88
89 // Token: 0x040003A8 RID: 936
90 private readonly bool _ignoreCase;
91 }
92}
class f__AnonymousType0<< Count > j__TPar
static int GetIgnoreCaseHash(string source)
OrdinalComparer(bool ignoreCase)
override bool Equals(object obj)
override int GetHashCode()
override bool Equals(string x, string y)
override int Compare(string x, string y)
override int GetHashCode(string obj)