Leggere in inglese Modifica

Condividi tramite


ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) Method

Definition

Compares the current ValueTuple instance to a specified object.

C#
int IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer);

Parameters

other
Object

The object to compare with the current instance.

comparer
IComparer

An object that provides custom rules for comparison. This parameter is ignored.

Returns

Returns 0 if other is a ValueTuple instance and 1 if other is null.

Implements

Exceptions

other is not a ValueTuple instance.

Applies to

Prodotto Versioni
.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