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

39 lines
1.4 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System
{
/// <summary>Defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances.</summary>
// Token: 0x02000103 RID: 259
[Token(Token = "0x2000103")]
[ComVisible(true)]
public interface IComparable
{
/// <summary>Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.</summary>
/// <param name="obj">An object to compare with this instance.</param>
/// <returns>A value that indicates the relative order of the objects being compared. The return value has these meanings:
/// Value
///
/// Meaning
///
/// Less than zero
///
/// This instance precedes <paramref name="obj" /> in the sort order.
///
/// Zero
///
/// This instance occurs in the same position in the sort order as <paramref name="obj" />.
///
/// Greater than zero
///
/// This instance follows <paramref name="obj" /> in the sort order.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="obj" /> is not the same type as this instance.</exception>
// Token: 0x0600099B RID: 2459
[Token(Token = "0x600099B")]
[Address(Slot = "0")]
int CompareTo(object obj);
}
}