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
CultureAwareComparer.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x020000FE RID: 254
10 {
11 // Token: 0x06000988 RID: 2440 RVA: 0x00016EF0 File Offset: 0x000150F0
15
16 // Token: 0x06000989 RID: 2441 RVA: 0x00016F00 File Offset: 0x00015100
18 {
19 if (!true)
20 {
21 }
22 base..ctor();
23 this._compareInfo = compareInfo;
25 }
26
27 // Token: 0x0600098A RID: 2442 RVA: 0x00016F24 File Offset: 0x00015124
29 {
30 int num = 1;
31 if (num == 0)
32 {
33 }
34 base..ctor();
35 if (num == 0)
36 {
37 }
38 Type type;
39 object value = info.GetValue("_compareInfo", type);
40 if (value != null)
41 {
43 return;
44 }
45 bool boolean = info.GetBoolean("_ignoreCase");
46 Type type2;
47 if (info.GetValueNoThrow("_options", type2) != null)
48 {
49 return;
50 }
53 }
54
55 // Token: 0x0600098B RID: 2443 RVA: 0x00016F8C File Offset: 0x0001518C
56 public override int Compare(string x, string y)
57 {
58 if (x != null && y != null)
59 {
60 CompareInfo compareInfo = this._compareInfo;
61 }
62 return 1;
63 }
64
65 // Token: 0x0600098C RID: 2444 RVA: 0x00016FAC File Offset: 0x000151AC
66 public override bool Equals(string x, string y)
67 {
68 if (x != null && y != null)
69 {
70 CompareInfo compareInfo = this._compareInfo;
72 }
73 return true;
74 }
75
76 // Token: 0x0600098D RID: 2445 RVA: 0x00016FD0 File Offset: 0x000151D0
77 public override int GetHashCode(string obj)
78 {
79 while (obj == null)
80 {
81 }
82 CompareInfo compareInfo = this._compareInfo;
84 return compareInfo.GetHashCodeOfString(obj, options);
85 }
86
87 // Token: 0x0600098E RID: 2446 RVA: 0x00016FF8 File Offset: 0x000151F8
88 public override bool Equals(object obj)
89 {
90 if (obj != null)
91 {
93 CompareInfo compareInfo = this._compareInfo;
94 return;
95 }
96 }
97
98 // Token: 0x0600098F RID: 2447 RVA: 0x00017018 File Offset: 0x00015218
99 public override int GetHashCode()
100 {
101 /*
102An exception occurred when decompiling this method (0600098F)
103
104ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.CultureAwareComparer::GetHashCode()
105
106 ---> System.Exception: Basic block has to end with unconditional control flow.
107{
108 Block_0:
109 stloc:CompareInfo(var_0_06, ldfld:CompareInfo(CultureAwareComparer::_compareInfo, ldloc:CultureAwareComparer(this)))
110 stloc:CompareOptions(var_1_0D, ldfld:CompareOptions(CultureAwareComparer::_options, ldloc:CultureAwareComparer(this)))
111}
112
113 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
114 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
115 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
116 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
117 --- End of inner exception stack trace ---
118 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
119 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
120*/;
121 }
122
123 // Token: 0x06000990 RID: 2448 RVA: 0x00017034 File Offset: 0x00015234
125 {
126 CompareInfo compareInfo = this._compareInfo;
127 info.AddValue("_compareInfo", compareInfo);
130 info.AddValue("_ignoreCase", true);
131 }
132
133 // Token: 0x040003A6 RID: 934
135
136 // Token: 0x040003A7 RID: 935
138 }
139}
class f__AnonymousType0<< Count > j__TPar
override int Compare(string x, string y)
override bool Equals(object obj)
void GetObjectData(SerializationInfo info, StreamingContext context)
CultureAwareComparer(CompareInfo compareInfo, CompareOptions options)
CultureAwareComparer(CultureInfo culture, CompareOptions options)
CultureAwareComparer(SerializationInfo info, StreamingContext context)
override int GetHashCode(string obj)
override bool Equals(string x, string y)
int GetHashCodeOfString(string source, CompareOptions options)
void AddValue(string name, object value, Type type)