ValueTuple.IComparable.CompareTo(Object) Method

Definition

Compares this ValueTuple instance with a specified object and returns an indication of their relative values.

C#
int IComparable.CompareTo(object other);

Parameters

other
Object

The object to compare with the current instance.

Returns

0 if other is a ValueTuple instance; otherwise, 1 if other is null.

Implements

Exceptions

other is not a ValueTuple instance.

Applies to

Toode Versioonid
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1