Redigeeri

Jagamisviis:


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);
abstract member System.Collections.IStructuralComparable.CompareTo : obj * System.Collections.IComparer -> int
override this.System.Collections.IStructuralComparable.CompareTo : obj * System.Collections.IComparer -> int
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