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: 0x02000619 RID: 1561
[Token(Token = "0x2000619")]
[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: 0x170007C6 RID: 1990
// (get) Token: 0x060030BD RID: 12477 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170007C6")]
public static Comparer Default
{
[Token(Token = "0x60030BD")]
[Address(RVA = "0x2274810", Offset = "0x2273810", VA = "0x182274810")]
get
{
return null;
}
}
/// Creates a comparer by using the specified comparison.
/// The comparison to use.
/// The new comparer.
// Token: 0x060030BE RID: 12478 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60030BE")]
[Address(RVA = "0x3450540", Offset = "0x344F540", VA = "0x183450540")]
public static Comparer Create(Comparison comparison)
{
return null;
}
// Token: 0x060030BF RID: 12479 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60030BF")]
[Address(RVA = "0x35E1BA0", Offset = "0x35E0BA0", VA = "0x1835E1BA0")]
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: 0x060030C0 RID: 12480
[Token(Token = "0x60030C0")]
[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: 0x060030C1 RID: 12481 RVA: 0x0001A940 File Offset: 0x00018B40
[Token(Token = "0x60030C1")]
[Address(RVA = "0x2273C20", Offset = "0x2272C20", VA = "0x182273C20", Slot = "4")]
int IComparer.Compare(object x, object y)
{
return 0;
}
/// Initializes a new instance of the class.
// Token: 0x060030C2 RID: 12482 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60030C2")]
[Address(RVA = "0x1CC5E40", Offset = "0x1CC4E40", VA = "0x181CC5E40")]
protected Comparer()
{
}
// Token: 0x04001B0D RID: 6925
[Token(Token = "0x4001B0D")]
private static Comparer defaultComparer;
}
}