ValueTuple.IStructuralComparable.CompareTo(Object, IComparer) Method

Definition

Compares the current ValueTuple instance to a specified object.

 virtual int System.Collections.IStructuralComparable.CompareTo(System::Object ^ other, System::Collections::IComparer ^ comparer) = System::Collections::IStructuralComparable::CompareTo;
int IStructuralComparable.CompareTo (object other, System.Collections.IComparer comparer);
Function CompareTo (other As Object, comparer As IComparer) As Integer Implements IStructuralComparable.CompareTo

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