99 lines
4.4 KiB
C#
99 lines
4.4 KiB
C#
using System;
|
|
using System.Globalization;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Collections
|
|
{
|
|
/// <summary>Compares two objects for equivalence, where string comparisons are case-sensitive.</summary>
|
|
// Token: 0x020005C8 RID: 1480
|
|
[Token(Token = "0x20005C8")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class Comparer : IComparer, ISerializable
|
|
{
|
|
// Token: 0x06002DF8 RID: 11768 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DF8")]
|
|
[Address(RVA = "0x2C302C0", Offset = "0x2C2F2C0", VA = "0x182C302C0")]
|
|
private Comparer()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Comparer" /> class using the specified <see cref="T:System.Globalization.CultureInfo" />.</summary>
|
|
/// <param name="culture">The <see cref="T:System.Globalization.CultureInfo" /> to use for the new <see cref="T:System.Collections.Comparer" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="culture" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06002DF9 RID: 11769 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DF9")]
|
|
[Address(RVA = "0x2C30120", Offset = "0x2C2F120", VA = "0x182C30120")]
|
|
public Comparer(CultureInfo culture)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002DFA RID: 11770 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DFA")]
|
|
[Address(RVA = "0x2C301B0", Offset = "0x2C2F1B0", VA = "0x182C301B0")]
|
|
private Comparer(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Performs a case-sensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.</summary>
|
|
/// <param name="a">The first object to compare.</param>
|
|
/// <param name="b">The second object to compare.</param>
|
|
/// <returns>A signed integer that indicates the relative values of <paramref name="a" /> and <paramref name="b" />, as shown in the following table.
|
|
/// Value
|
|
///
|
|
/// Meaning
|
|
///
|
|
/// Less than zero
|
|
///
|
|
/// <paramref name="a" /> is less than <paramref name="b" />.
|
|
///
|
|
/// Zero
|
|
///
|
|
/// <paramref name="a" /> equals <paramref name="b" />.
|
|
///
|
|
/// Greater than zero
|
|
///
|
|
/// <paramref name="a" /> is greater than <paramref name="b" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">Neither <paramref name="a" /> nor <paramref name="b" /> implements the <see cref="T:System.IComparable" /> interface.
|
|
/// -or-
|
|
/// <paramref name="a" /> and <paramref name="b" /> are of different types and neither one can handle comparisons with the other.</exception>
|
|
// Token: 0x06002DFB RID: 11771 RVA: 0x00019698 File Offset: 0x00017898
|
|
[Token(Token = "0x6002DFB")]
|
|
[Address(RVA = "0x2C2FE50", Offset = "0x2C2EE50", VA = "0x182C2FE50", Slot = "4")]
|
|
public int Compare(object a, object b)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the data required for serialization.</summary>
|
|
/// <param name="info">The object to populate with data.</param>
|
|
/// <param name="context">The context information about the source or destination of the serialization.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="info" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06002DFC RID: 11772 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DFC")]
|
|
[Address(RVA = "0x2C2FFD0", Offset = "0x2C2EFD0", VA = "0x182C2FFD0", Slot = "5")]
|
|
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001A3A RID: 6714
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001A3A")]
|
|
private CompareInfo m_compareInfo;
|
|
|
|
/// <summary>Represents an instance of <see cref="T:System.Collections.Comparer" /> that is associated with the <see cref="P:System.Threading.Thread.CurrentCulture" /> of the current thread. This field is read-only.</summary>
|
|
// Token: 0x04001A3B RID: 6715
|
|
[Token(Token = "0x4001A3B")]
|
|
public static readonly Comparer Default;
|
|
|
|
/// <summary>Represents an instance of <see cref="T:System.Collections.Comparer" /> that is associated with <see cref="P:System.Globalization.CultureInfo.InvariantCulture" />. This field is read-only.</summary>
|
|
// Token: 0x04001A3C RID: 6716
|
|
[Token(Token = "0x4001A3C")]
|
|
public static readonly Comparer DefaultInvariant;
|
|
}
|
|
}
|