using System; using System.Runtime.CompilerServices; using Cpp2IlInjected; namespace System.Collections.Generic { /// Provides a base class for implementations of the generic interface. /// The type of objects to compare. // Token: 0x020005F9 RID: 1529 [Token(Token = "0x20005F9")] [TypeDependency("System.Collections.Generic.ObjectComparer`1")] [Serializable] public abstract class Comparer : IComparer, IComparer { /// Returns a default sort order comparer for the type specified by the generic argument. /// An object that inherits and serves as a sort order comparer for type . // Token: 0x1700074E RID: 1870 // (get) Token: 0x06002EA5 RID: 11941 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x1700074E")] public static Comparer Default { [Token(Token = "0x6002EA5")] [Address(RVA = "0x2332230", Offset = "0x2331030", VA = "0x182332230")] get { return null; } } /// Creates a comparer by using the specified comparison. /// The comparison to use. /// The new comparer. // Token: 0x06002EA6 RID: 11942 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002EA6")] [Address(RVA = "0x31CA260", Offset = "0x31C9060", VA = "0x1831CA260")] public static Comparer Create(Comparison comparison) { return null; } // Token: 0x06002EA7 RID: 11943 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002EA7")] [Address(RVA = "0x353CA80", Offset = "0x353B880", VA = "0x18353CA80")] private static Comparer CreateComparer() { return null; } /// When overridden in a derived class, performs a comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other. /// The first object to compare. /// The second object to compare. /// A signed integer that indicates the relative values of and , as shown in the following table. /// Value /// /// Meaning /// /// Less than zero /// /// is less than . /// /// Zero /// /// equals . /// /// Greater than zero /// /// is greater than . /// Type does not implement either the generic interface or the interface. // Token: 0x06002EA8 RID: 11944 [Token(Token = "0x6002EA8")] [Address(Slot = "6")] public abstract int Compare(T x, T y); /// Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. /// The first object to compare. /// The second object to compare. /// A signed integer that indicates the relative values of and , as shown in the following table. /// Value /// /// Meaning /// /// Less than zero /// /// is less than . /// /// Zero /// /// equals . /// /// Greater than zero /// /// is greater than . /// /// or is of a type that cannot be cast to type . /// -or- /// and do not implement either the generic interface or the interface. // Token: 0x06002EA9 RID: 11945 RVA: 0x00018510 File Offset: 0x00016710 [Token(Token = "0x6002EA9")] [Address(RVA = "0x2330260", Offset = "0x232F060", VA = "0x182330260", Slot = "4")] int IComparer.Compare(object x, object y) { return 0; } /// Initializes a new instance of the class. // Token: 0x06002EAA RID: 11946 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002EAA")] [Address(RVA = "0x118F5A0", Offset = "0x118E3A0", VA = "0x18118F5A0")] protected Comparer() { } // Token: 0x04001A4A RID: 6730 [Token(Token = "0x4001A4A")] private static Comparer defaultComparer; } }