Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

115 lines
5.1 KiB
C#

using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Collections.Generic
{
/// <summary>Provides a base class for implementations of the <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> generic interface.</summary>
/// <typeparam name="T">The type of objects to compare.</typeparam>
// Token: 0x02000600 RID: 1536
[Token(Token = "0x2000600")]
[TypeDependency("System.Collections.Generic.ObjectEqualityComparer`1")]
[Serializable]
public abstract class EqualityComparer<T> : IEqualityComparer, IEqualityComparer<T>
{
/// <summary>Returns a default equality comparer for the type specified by the generic argument.</summary>
/// <returns>The default instance of the <see cref="T:System.Collections.Generic.EqualityComparer`1" /> class for type <typeparamref name="T" />.</returns>
// Token: 0x1700074F RID: 1871
// (get) Token: 0x06002EB9 RID: 11961 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700074F")]
public static EqualityComparer<T> Default
{
[Token(Token = "0x6002EB9")]
[Address(RVA = "0x2332230", Offset = "0x2331030", VA = "0x182332230")]
get
{
return null;
}
}
// Token: 0x06002EBA RID: 11962 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002EBA")]
[Address(RVA = "0x3220AB0", Offset = "0x321F8B0", VA = "0x183220AB0")]
private static EqualityComparer<T> CreateComparer()
{
return null;
}
/// <summary>When overridden in a derived class, determines whether two objects of type <typeparamref name="T" /> are equal.</summary>
/// <param name="x">The first object to compare.</param>
/// <param name="y">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if the specified objects are equal; otherwise, <see langword="false" />.</returns>
// Token: 0x06002EBB RID: 11963
[Token(Token = "0x6002EBB")]
[Address(Slot = "8")]
public abstract bool Equals(T x, T y);
/// <summary>When overridden in a derived class, serves as a hash function for the specified object for hashing algorithms and data structures, such as a hash table.</summary>
/// <param name="obj">The object for which to get a hash code.</param>
/// <returns>A hash code for the specified object.</returns>
/// <exception cref="T:System.ArgumentNullException">The type of <paramref name="obj" /> is a reference type and <paramref name="obj" /> is <see langword="null" />.</exception>
// Token: 0x06002EBC RID: 11964
[Token(Token = "0x6002EBC")]
[Address(Slot = "9")]
public abstract int GetHashCode(T obj);
// Token: 0x06002EBD RID: 11965 RVA: 0x00018618 File Offset: 0x00016818
[Token(Token = "0x6002EBD")]
[Address(RVA = "0x2F10F40", Offset = "0x2F0FD40", VA = "0x182F10F40", Slot = "10")]
internal virtual int IndexOf(T[] array, T value, int startIndex, int count)
{
return 0;
}
// Token: 0x06002EBE RID: 11966 RVA: 0x00018630 File Offset: 0x00016830
[Token(Token = "0x6002EBE")]
[Address(RVA = "0x2F115B0", Offset = "0x2F103B0", VA = "0x182F115B0", Slot = "11")]
internal virtual int LastIndexOf(T[] array, T value, int startIndex, int count)
{
return 0;
}
/// <summary>Returns a hash code for the specified object.</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 specified object.</returns>
/// <exception cref="T:System.ArgumentNullException">The type of <paramref name="obj" /> is a reference type and <paramref name="obj" /> is <see langword="null" />.
/// -or-
/// <paramref name="obj" /> is of a type that cannot be cast to type <typeparamref name="T" />.</exception>
// Token: 0x06002EBF RID: 11967 RVA: 0x00018648 File Offset: 0x00016848
[Token(Token = "0x6002EBF")]
[Address(RVA = "0x2F12DD0", Offset = "0x2F11BD0", VA = "0x182F12DD0", Slot = "5")]
int IEqualityComparer.GetHashCode(object obj)
{
return 0;
}
/// <summary>Determines whether the specified objects are equal.</summary>
/// <param name="x">The first object to compare.</param>
/// <param name="y">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if the specified objects are equal; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="x" /> or <paramref name="y" /> is of a type that cannot be cast to type <typeparamref name="T" />.</exception>
// Token: 0x06002EC0 RID: 11968 RVA: 0x00018660 File Offset: 0x00016860
[Token(Token = "0x6002EC0")]
[Address(RVA = "0x2F12450", Offset = "0x2F11250", VA = "0x182F12450", Slot = "4")]
bool IEqualityComparer.Equals(object x, object y)
{
return default(bool);
}
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.EqualityComparer`1" /> class.</summary>
// Token: 0x06002EC1 RID: 11969 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002EC1")]
[Address(RVA = "0x118F5A0", Offset = "0x118E3A0", VA = "0x18118F5A0")]
protected EqualityComparer()
{
}
// Token: 0x04001A4C RID: 6732
[Token(Token = "0x4001A4C")]
private static EqualityComparer<T> defaultComparer;
}
}