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
Comparer.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000651 RID: 1617
8 [TypeDependency("System.Collections.Generic.ObjectComparer`1")]
10 public abstract class Comparer<T> : IComparer, IComparer<T>
11 {
12 // Token: 0x170007F8 RID: 2040
13 // (get) Token: 0x0600316C RID: 12652 RVA: 0x0000207A File Offset: 0x0000027A
14 public static Comparer<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: 0x0600316D RID: 12653 RVA: 0x0006B4A8 File Offset: 0x000696A8
23 private static Comparer<T> CreateComparer()
24 {
25 Type type;
26 if (type != null)
27 {
28 }
29 throw new InvalidCastException();
30 }
31
32 // Token: 0x0600316E RID: 12654
33 public abstract int Compare(T x, T y);
34
35 // Token: 0x0600316F RID: 12655 RVA: 0x0006B4CC File Offset: 0x000696CC
36 int IComparer.Compare(object x, object y)
37 {
38 if (x != null)
39 {
40 if (y == null)
41 {
42 return 1;
43 }
44 if (x == null || y != null)
45 {
46 }
47 }
48 ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
49 return 1;
50 }
51
52 // Token: 0x06003170 RID: 12656 RVA: 0x0006B4F4 File Offset: 0x000696F4
53 protected Comparer()
54 {
55 }
56
57 // Token: 0x04001AA7 RID: 6823
59 }
60}
class f__AnonymousType0<< Count > j__TPar
static Comparer< T > CreateComparer()
Definition Comparer.cs:23
static Comparer< T > defaultComparer
Definition Comparer.cs:58
static Comparer< T > Default
Definition Comparer.cs:15
static void ThrowArgumentException(ExceptionResource resource)