IStructuralComparable

E697495

IStructuralComparable is a .NET interface that enables objects to be compared based on the structure and values of their components rather than just their references.

All labels observed (4)

How this entity was disambiguated

Statements (50)

Predicate Object
instanceOf .NET interface
interface
comparisonDirection total ordering when implemented correctly
comparisonResult negative if instance precedes other
positive if instance follows other
zero if instances are equal
comparisonType structural comparison
comparisonUses IComparer implementation
definedInAssembly mscorlib
linked to: mscorlib.dll
definedInNamespace System.Collections
differentFrom reference-based comparison
documentationUrl https://learn.microsoft.com/dotnet/api/system.collections.istructuralcomparable
hasMethod CompareTo(Object, IComparer)
implementedBy Tuple`1
Tuple`2
Tuple`3
Tuple`4
Tuple`5
Tuple`6
Tuple`7
Tuple`8
ValueTuple`1
linked to: System.ValueTuple

ValueTuple`2
linked to: ValueTuple`4

ValueTuple`3
ValueTuple`4
ValueTuple`5
linked to: System.ValueTuple

ValueTuple`6
linked to: System.ValueTuple

ValueTuple`7
ValueTuple`8
introducedInVersion .NET Framework 4.0
linked to: .NET Framework
languageSupport C#
F#
VB.NET
linked to: Visual Basic .NET
methodParameter IComparer
Object
methodReturnType Int32
partOf .NET
.NET Core
.NET Framework
platform .NET Standard
purpose enable structural comparison of objects
relatedTo IStructuralEquatable
requires implementation of CompareTo method
supports comparison based on structure and values of components
usedBy System.Array
System.Tuple
System.ValueTuple
usedFor custom structural comparison logic
ordering of composite objects
sorting collections by structural value

How these facts were elicited

Referenced by (4)

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

System.Collections containsInterface IStructuralComparable
System.Array implementsInterface System.Collections.IStructuralComparable
linked to: IStructuralComparable
System.Array implementsInterface System.Collections.IStructuralEquatable
linked to: IStructuralComparable
IStructuralComparable relatedTo IStructuralEquatable
linked to: IStructuralComparable