Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Collections/Generic/IComparer.cs
T
2026-04-10 22:50:51 +02:00

37 lines
1.2 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Collections.Generic
{
/// <summary>Defines a method that a type implements to compare two objects.</summary>
/// <typeparam name="T">The type of objects to compare.</typeparam>
// Token: 0x0200060B RID: 1547
[Token(Token = "0x200060B")]
public interface IComparer<in T>
{
/// <summary>Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.</summary>
/// <param name="x">The first object to compare.</param>
/// <param name="y">The second object to compare.</param>
/// <returns>A signed integer that indicates the relative values of <paramref name="x" /> and <paramref name="y" />, as shown in the following table.
/// Value
///
/// Meaning
///
/// Less than zero
///
/// <paramref name="x" /> is less than <paramref name="y" />.
///
/// Zero
///
/// <paramref name="x" /> equals <paramref name="y" />.
///
/// Greater than zero
///
/// <paramref name="x" /> is greater than <paramref name="y" />.</returns>
// Token: 0x06002EFD RID: 12029
[Token(Token = "0x6002EFD")]
[Address(Slot = "0")]
int Compare(T x, T y);
}
}