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.
1
using
System
;
2
using
System.Runtime.CompilerServices
;
3
using
Cpp2IlInjected
;
4
5
namespace
System.Collections.Generic
6
{
7
// Token: 0x02000655 RID: 1621
8
[
TypeDependency
(
"System.Collections.Generic.ObjectEqualityComparer`1"
)]
9
[
Serializable
]
10
public
abstract
class
EqualityComparer
<T> :
IEqualityComparer
,
IEqualityComparer
<T>
11
{
12
// Token: 0x170007F9 RID: 2041
13
// (get) Token: 0x0600317D RID: 12669 RVA: 0x0000207A File Offset: 0x0000027A
14
public
static
EqualityComparer<T>
Default
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
23
private
static
EqualityComparer<T>
CreateComparer
()
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
;
41
TypeCode
typeCode =
Type
.
GetTypeCode
(
Enum
.
GetUnderlyingType
(
type3
));
42
throw
new
InvalidCastException
();
43
}
44
throw
new
ArrayTypeMismatchException
();
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
66
int
IEqualityComparer
.
GetHashCode
(
object
obj
)
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
98
private
static
EqualityComparer<T>
defaultComparer
;
99
}
100
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Collections.Generic.EqualityComparer.Default
static EqualityComparer< T > Default
Definition
EqualityComparer.cs:15
System.Collections.Generic.EqualityComparer.IndexOf
virtual int IndexOf(T[] array, T value, int startIndex, int count)
Definition
EqualityComparer.cs:54
System.Collections.Generic.EqualityComparer.defaultComparer
static EqualityComparer< T > defaultComparer
Definition
EqualityComparer.cs:98
System.Collections.Generic.EqualityComparer.CreateComparer
static EqualityComparer< T > CreateComparer()
Definition
EqualityComparer.cs:23
System.Collections.Generic.EqualityComparer.GetHashCode
int GetHashCode(T obj)
System.Collections.Generic.EqualityComparer.EqualityComparer
EqualityComparer()
Definition
EqualityComparer.cs:93
System.Collections.Generic.EqualityComparer.LastIndexOf
virtual int LastIndexOf(T[] array, T value, int startIndex, int count)
Definition
EqualityComparer.cs:60
System.Collections.Generic.EqualityComparer.Equals
bool Equals(T x, T y)
System.Collections.Generic.EqualityComparer
Definition
EqualityComparer.cs:11
System.Enum.GetUnderlyingType
static Type GetUnderlyingType(Type enumType)
Definition
Enum.cs:205
System.Enum
Definition
Enum.cs:12
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.ThrowHelper.ThrowArgumentException
static void ThrowArgumentException(ExceptionResource resource)
Definition
ThrowHelper.cs:235
System.ThrowHelper
Definition
ThrowHelper.cs:11
System.Type.GetTypeCode
static TypeCode GetTypeCode(Type type)
Definition
Type.cs:1110
System.Type
Definition
Type.cs:12
System.Collections.Generic.IEqualityComparer.Equals
bool Equals(T x, T y)
System.Collections.Generic.IEqualityComparer.GetHashCode
int GetHashCode(T obj)
System.Collections.Generic.IEqualityComparer
Definition
IEqualityComparer.cs:7
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Reflection.TypeAttributes.Serializable
@ Serializable
System.Runtime.CompilerServices
Definition
AsyncMethodBuilderAttribute.cs:4
System.ExceptionResource
ExceptionResource
Definition
ExceptionResource.cs:7
System.TypeCode
TypeCode
Definition
TypeCode.cs:7
System.ExceptionArgument.startIndex
@ startIndex
System.ExceptionArgument.value
@ value
System.ExceptionArgument.obj
@ obj
System.ExceptionArgument.count
@ count
System.ExceptionArgument.array
@ array
System
Definition
__ComObject.cs:4
source
mscorlib
System
Collections
Generic
EqualityComparer.cs
Generated by
1.10.0