Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

85 lines
3.8 KiB
C#

using System;
using System.Globalization;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Collections
{
/// <summary>Compares two objects for equivalence, ignoring the case of strings.</summary>
// Token: 0x020005C5 RID: 1477
[Token(Token = "0x20005C5")]
[ComVisible(true)]
[Serializable]
public class CaseInsensitiveComparer : IComparer
{
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.CaseInsensitiveComparer" /> class using the <see cref="P:System.Threading.Thread.CurrentCulture" /> of the current thread.</summary>
// Token: 0x06002DD4 RID: 11732 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002DD4")]
[Address(RVA = "0x2C2E7B0", Offset = "0x2C2D7B0", VA = "0x182C2E7B0")]
public CaseInsensitiveComparer()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.CaseInsensitiveComparer" /> 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.CaseInsensitiveComparer" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="culture" /> is <see langword="null" />.</exception>
// Token: 0x06002DD5 RID: 11733 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002DD5")]
[Address(RVA = "0x2C2E720", Offset = "0x2C2D720", VA = "0x182C2E720")]
public CaseInsensitiveComparer(CultureInfo culture)
{
}
/// <summary>Gets an instance of <see cref="T:System.Collections.CaseInsensitiveComparer" /> that is associated with the <see cref="P:System.Threading.Thread.CurrentCulture" /> of the current thread and that is always available.</summary>
/// <returns>An instance of <see cref="T:System.Collections.CaseInsensitiveComparer" /> that is associated with the <see cref="P:System.Threading.Thread.CurrentCulture" /> of the current thread.</returns>
// Token: 0x170006ED RID: 1773
// (get) Token: 0x06002DD6 RID: 11734 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170006ED")]
public static CaseInsensitiveComparer Default
{
[Token(Token = "0x6002DD6")]
[Address(RVA = "0x2C2E830", Offset = "0x2C2D830", VA = "0x182C2E830")]
get
{
return null;
}
}
/// <summary>Performs a case-insensitive 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" />, with casing ignored.
///
/// Zero
///
/// <paramref name="a" /> equals <paramref name="b" />, with casing ignored.
///
/// Greater than zero
///
/// <paramref name="a" /> is greater than <paramref name="b" />, with casing ignored.</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.</exception>
// Token: 0x06002DD7 RID: 11735 RVA: 0x000195C0 File Offset: 0x000177C0
[Token(Token = "0x6002DD7")]
[Address(RVA = "0x2C2E4F0", Offset = "0x2C2D4F0", VA = "0x182C2E4F0", Slot = "4")]
public int Compare(object a, object b)
{
return 0;
}
// Token: 0x04001A37 RID: 6711
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001A37")]
private CompareInfo m_compareInfo;
}
}