ValueTuple::IComparable::CompareTo Method (Object^)

 

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

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

private:
virtual int CompareTo(
	Object^ other
) sealed = IComparable::CompareTo

Parameters

other
Type: System::Object^

The object to compare with the current instance

Return Value

Type: System::Int32

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

Exception Condition
ArgumentException

other is not a ValueTuple instance.

.NET Framework
Available since 4.7
Return to top
Show: