Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Collections/IComparer.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

26 lines
1.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Collections
{
/// <summary>Exposes a method that compares two objects.</summary>
// Token: 0x020005B6 RID: 1462
[Token(Token = "0x20005B6")]
[ComVisible(true)]
public interface IComparer
{
/// <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" />: - If less than 0, <paramref name="x" /> is less than <paramref name="y" />. - If 0, <paramref name="x" /> equals <paramref name="y" />. - If greater than 0, <paramref name="x" /> is greater than <paramref name="y" />.</returns>
/// <exception cref="T:System.ArgumentException">Neither <paramref name="x" /> nor <paramref name="y" /> implements the <see cref="T:System.IComparable" /> interface.
/// -or-
/// <paramref name="x" /> and <paramref name="y" /> are of different types and neither one can handle comparisons with the other.</exception>
// Token: 0x06002C67 RID: 11367
[Token(Token = "0x6002C67")]
[Address(Slot = "0")]
int Compare(object x, object y);
}
}