ValueTuple::CompareTo Method (ValueTuple)

 

Compares the current ValueTuple instance with a specified object.

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

public:
virtual int CompareTo(
	ValueTuple other
) sealed

Parameters

other
Type: System::ValueTuple

The object to compare with the current instance.

Return Value

Type: System::Int32

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

Exception Condition
ArgumentException

other is not a ValueTuple instance.

.NET Framework
Available since 4.7
Return to top
Show: