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
EqualityComparer.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000655 RID: 1621
8 [TypeDependency("System.Collections.Generic.ObjectEqualityComparer`1")]
11 {
12 // Token: 0x170007F9 RID: 2041
13 // (get) Token: 0x0600317D RID: 12669 RVA: 0x0000207A File Offset: 0x0000027A
15 {
16 get
17 {
18 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19 }
20 }
21
22 // Token: 0x0600317E RID: 12670 RVA: 0x0006B5E4 File Offset: 0x000697E4
24 {
25 Type type;
26 if (type != null)
27 {
28 }
29 Type type2;
30 bool flag = type == type2;
31 object obj;
32 if (obj != null)
33 {
34 }
35 if (obj != null)
36 {
37 }
38 if (obj == null || obj != null)
39 {
40 Type type3;
42 throw new InvalidCastException();
43 }
45 }
46
47 // Token: 0x0600317F RID: 12671
48 public abstract bool Equals(T x, T y);
49
50 // Token: 0x06003180 RID: 12672
51 public abstract int GetHashCode(T obj);
52
53 // Token: 0x06003181 RID: 12673 RVA: 0x0006B630 File Offset: 0x00069830
54 internal virtual int IndexOf(T[] array, T value, int startIndex, int count)
55 {
56 return count;
57 }
58
59 // Token: 0x06003182 RID: 12674 RVA: 0x0006B640 File Offset: 0x00069840
60 internal virtual int LastIndexOf(T[] array, T value, int startIndex, int count)
61 {
62 return count;
63 }
64
65 // Token: 0x06003183 RID: 12675 RVA: 0x0006B650 File Offset: 0x00069850
67 {
68 if (obj != null)
69 {
70 if (obj != null)
71 {
72 }
73 ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
74 }
75 throw new InvalidCastException();
76 }
77
78 // Token: 0x06003184 RID: 12676 RVA: 0x0006B670 File Offset: 0x00069870
79 bool IEqualityComparer.Equals(object x, object y)
80 {
81 if (x != null && y != null)
82 {
83 if (x != null && y != null)
84 {
85 return true;
86 }
87 ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
88 }
89 throw new InvalidCastException();
90 }
91
92 // Token: 0x06003185 RID: 12677 RVA: 0x0006B698 File Offset: 0x00069898
93 protected EqualityComparer()
94 {
95 }
96
97 // Token: 0x04001AA8 RID: 6824
99 }
100}
class f__AnonymousType0<< Count > j__TPar
virtual int IndexOf(T[] array, T value, int startIndex, int count)
static EqualityComparer< T > defaultComparer
static EqualityComparer< T > CreateComparer()
virtual int LastIndexOf(T[] array, T value, int startIndex, int count)
static Type GetUnderlyingType(Type enumType)
Definition Enum.cs:205
static void ThrowArgumentException(ExceptionResource resource)
static TypeCode GetTypeCode(Type type)
Definition Type.cs:1110
TypeCode
Definition TypeCode.cs:7