85 lines
3.8 KiB
C#
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: 0x020005A6 RID: 1446
|
|
[Token(Token = "0x20005A6")]
|
|
[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: 0x06002BBE RID: 11198 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BBE")]
|
|
[Address(RVA = "0x2530DA0", Offset = "0x252FBA0", VA = "0x182530DA0")]
|
|
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: 0x06002BBF RID: 11199 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BBF")]
|
|
[Address(RVA = "0x2530D10", Offset = "0x252FB10", VA = "0x182530D10")]
|
|
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: 0x17000675 RID: 1653
|
|
// (get) Token: 0x06002BC0 RID: 11200 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000675")]
|
|
public static CaseInsensitiveComparer Default
|
|
{
|
|
[Token(Token = "0x6002BC0")]
|
|
[Address(RVA = "0x2530E20", Offset = "0x252FC20", VA = "0x182530E20")]
|
|
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: 0x06002BC1 RID: 11201 RVA: 0x000171C0 File Offset: 0x000153C0
|
|
[Token(Token = "0x6002BC1")]
|
|
[Address(RVA = "0x2530AE0", Offset = "0x252F8E0", VA = "0x182530AE0", Slot = "4")]
|
|
public int Compare(object a, object b)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04001974 RID: 6516
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001974")]
|
|
private CompareInfo m_compareInfo;
|
|
}
|
|
}
|