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

70 lines
3.3 KiB
C#

using System;
using System.Globalization;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Collections
{
/// <summary>Supplies a hash code for an object, using a hashing algorithm that ignores the case of strings.</summary>
// Token: 0x020005A7 RID: 1447
[Token(Token = "0x20005A7")]
[Obsolete]
[ComVisible(true)]
[Obsolete("Please use StringComparer instead.")]
[Serializable]
public class CaseInsensitiveHashCodeProvider : IHashCodeProvider
{
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.CaseInsensitiveHashCodeProvider" /> class using the <see cref="P:System.Threading.Thread.CurrentCulture" /> of the current thread.</summary>
// Token: 0x06002BC2 RID: 11202 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002BC2")]
[Address(RVA = "0x2531050", Offset = "0x252FE50", VA = "0x182531050")]
public CaseInsensitiveHashCodeProvider()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.CaseInsensitiveHashCodeProvider" /> 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.CaseInsensitiveHashCodeProvider" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="culture" /> is <see langword="null" />.</exception>
// Token: 0x06002BC3 RID: 11203 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002BC3")]
[Address(RVA = "0x2530FC0", Offset = "0x252FDC0", VA = "0x182530FC0")]
public CaseInsensitiveHashCodeProvider(CultureInfo culture)
{
}
/// <summary>Gets an instance of <see cref="T:System.Collections.CaseInsensitiveHashCodeProvider" /> 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.CaseInsensitiveHashCodeProvider" /> that is associated with the <see cref="P:System.Threading.Thread.CurrentCulture" /> of the current thread.</returns>
// Token: 0x17000676 RID: 1654
// (get) Token: 0x06002BC4 RID: 11204 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000676")]
public static CaseInsensitiveHashCodeProvider Default
{
[Token(Token = "0x6002BC4")]
[Address(RVA = "0x25310D0", Offset = "0x252FED0", VA = "0x1825310D0")]
get
{
return null;
}
}
/// <summary>Returns a hash code for the given object, using a hashing algorithm that ignores the case of strings.</summary>
/// <param name="obj">The <see cref="T:System.Object" /> for which a hash code is to be returned.</param>
/// <returns>A hash code for the given object, using a hashing algorithm that ignores the case of strings.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="obj" /> is <see langword="null" />.</exception>
// Token: 0x06002BC5 RID: 11205 RVA: 0x000171D8 File Offset: 0x000153D8
[Token(Token = "0x6002BC5")]
[Address(RVA = "0x2530F00", Offset = "0x252FD00", VA = "0x182530F00", Slot = "4")]
public int GetHashCode(object obj)
{
return 0;
}
// Token: 0x04001975 RID: 6517
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001975")]
private TextInfo m_text;
}
}