System.IComparable
E697474
System.IComparable is a .NET interface that defines a method for ordering and comparing objects, enabling sorting and comparison operations.
Statements (47)
| Predicate | Object |
|---|---|
| instanceOf |
.NET interface
ⓘ
interface ⓘ |
| assembly |
System.Private.CoreLib
NERFINISHED
ⓘ
System.Runtime NERFINISHED ⓘ mscorlib NERFINISHED ⓘ |
| CLSCompliant | true ⓘ |
| CompareToParameterType | System.Object NERFINISHED ⓘ |
| CompareToReturnType | System.Int32 NERFINISHED ⓘ |
| 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
NERFINISHED
ⓘ
System.Runtime.dll NERFINISHED ⓘ mscorlib.dll NERFINISHED ⓘ |
| documentation | https://learn.microsoft.com/dotnet/api/system.icomparable ⓘ |
| fullyQualifiedName | System.IComparable NERFINISHED ⓘ |
| implementedBy |
System.Char
NERFINISHED
ⓘ
System.DateTime ⓘ System.Decimal NERFINISHED ⓘ System.Double NERFINISHED ⓘ System.Guid NERFINISHED ⓘ System.Int32 ⓘ System.String ⓘ System.TimeSpan NERFINISHED ⓘ |
| introducedIn | .NET Framework 1.0 NERFINISHED ⓘ |
| isAbstract | true ⓘ |
| isGeneric | false ⓘ |
| isReferenceType | false ⓘ |
| isValueType | false ⓘ |
| language | C# NERFINISHED ⓘ |
| member | Int32 CompareTo(Object obj) ⓘ |
| methodName | CompareTo ⓘ |
| namespace | System ⓘ |
| purpose | define a generalized comparison method for ordering instances ⓘ |
| relatedInterface |
System.IComparable`1
NERFINISHED
ⓘ
System.IComparer NERFINISHED ⓘ System.IComparer`1 NERFINISHED ⓘ |
| requires | implementers must provide type-specific comparison logic ⓘ |
| supports |
comparison operations
ⓘ
ordering ⓘ sorting ⓘ |
| usedBy |
Array.Sort
NERFINISHED
ⓘ
List<T>.Sort ⓘ SortedDictionary<TKey,TValue> NERFINISHED ⓘ SortedList NERFINISHED ⓘ SortedSet<T> ⓘ |
| visibility | public ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.