System.IComparable

E697474

System.IComparable is a .NET interface that defines a method for ordering and comparing objects, enabling sorting and comparison operations.

All labels observed (4)

How this entity was disambiguated

Statements (47)

Predicate Object
instanceOf .NET interface
interface
assembly System.Private.CoreLib
System.Runtime
mscorlib
linked to: mscorlib.dll
CLSCompliant true
CompareToParameterType System.Object
CompareToReturnType System.Int32
comparisonContract negative if instance is less than object
positive if instance is greater than object
zero if instance is equal to object
definedIn System.Private.CoreLib.dll
System.Runtime.dll
mscorlib.dll
documentation https://learn.microsoft.com/dotnet/api/system.icomparable
fullyQualifiedName System.IComparable
implementedBy System.Char
System.DateTime
System.Decimal
System.Double
System.Guid
System.Int32
System.String
System.TimeSpan
introducedIn .NET Framework 1.0
linked to: .NET Framework
isAbstract true
isGeneric false
isReferenceType false
isValueType false
language C#
member Int32 CompareTo(Object obj)
methodName CompareTo
namespace System
purpose define a generalized comparison method for ordering instances
relatedInterface System.IComparable`1
linked to: System.IComparable

System.IComparer
System.IComparer`1
linked to: System.IComparer
requires implementers must provide type-specific comparison logic
supports comparison operations
ordering
sorting
usedBy Array.Sort
List<T>.Sort
SortedDictionary<TKey,TValue>
SortedList
SortedSet<T>
visibility public

How these facts were elicited

Referenced by (13)

Full triples — surface form annotated when it differs from this entity's canonical label.

System containsType System.IComparable
System.Single implementsInterface System.IComparable
System.SByte implements System.IComparable
System.UInt16 implementsInterface System.IComparable
System.UInt32 implements System.IComparable
System.UInt32 implements System.IComparable`1[System.UInt32]
linked to: System.IComparable
System.TimeSpan implementsInterface System.IComparable
System.Enum implementsInterface System.IComparable
System.Enum implementsInterface System.IComparable<System.Enum>
linked to: System.IComparable
System.IComparable fullyQualifiedName System.IComparable
System.IComparable relatedInterface System.IComparable`1
linked to: System.IComparable
System.ValueTuple implementsInterface System.IComparable
System.ValueTuple implementsInterface System.IComparable`1
linked to: System.IComparable