Files
2026-04-10 22:50:51 +02:00

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: 0x020005A9 RID: 1449
[Token(Token = "0x20005A9")]
[ComVisible(true)]
[Serializable]
public sealed class Comparer : IComparer, ISerializable
{
// Token: 0x06002BE2 RID: 11234 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002BE2")]
[Address(RVA = "0x25328B0", Offset = "0x25316B0", VA = "0x1825328B0")]
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: 0x06002BE3 RID: 11235 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002BE3")]
[Address(RVA = "0x2532710", Offset = "0x2531510", VA = "0x182532710")]
public Comparer(CultureInfo culture)
{
}
// Token: 0x06002BE4 RID: 11236 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002BE4")]
[Address(RVA = "0x25327A0", Offset = "0x25315A0", VA = "0x1825327A0")]
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: 0x06002BE5 RID: 11237 RVA: 0x00017298 File Offset: 0x00015498
[Token(Token = "0x6002BE5")]
[Address(RVA = "0x2532440", Offset = "0x2531240", VA = "0x182532440", 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: 0x06002BE6 RID: 11238 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002BE6")]
[Address(RVA = "0x25325C0", Offset = "0x25313C0", VA = "0x1825325C0", Slot = "5")]
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x04001977 RID: 6519
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001977")]
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: 0x04001978 RID: 6520
[Token(Token = "0x4001978")]
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: 0x04001979 RID: 6521
[Token(Token = "0x4001979")]
public static readonly Comparer DefaultInvariant;
}
}