Files
2026-06-04 11:42:34 +02:00

22 lines
1.3 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System
{
/// <summary>Defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x02000009 RID: 9
[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>
/// <returns>A 32-bit signed integer 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>
/// <param name="obj">An object to compare with this instance. </param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="obj" /> is not the same type as this instance. </exception>
/// <filterpriority>2</filterpriority>
// Token: 0x06000081 RID: 129
int CompareTo(object obj);
}
}