Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Collections/Generic/IEqualityComparer.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

32 lines
1.4 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Collections.Generic
{
/// <summary>Defines methods to support the comparison of objects for equality.</summary>
/// <typeparam name="T">The type of objects to compare.</typeparam>
// Token: 0x02000630 RID: 1584
[Token(Token = "0x2000630")]
public interface IEqualityComparer<in T>
{
/// <summary>Determines whether the specified objects are equal.</summary>
/// <param name="x">The first object of type <paramref name="T" /> to compare.</param>
/// <param name="y">The second object of type <paramref name="T" /> to compare.</param>
/// <returns>
/// <see langword="true" /> if the specified objects are equal; otherwise, <see langword="false" />.</returns>
// Token: 0x06003120 RID: 12576
[Token(Token = "0x6003120")]
[Address(Slot = "0")]
bool Equals(T x, T y);
/// <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" />.</exception>
// Token: 0x06003121 RID: 12577
[Token(Token = "0x6003121")]
[Address(Slot = "1")]
int GetHashCode(T obj);
}
}