Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValueTuple::IStructuralComparable::CompareTo Method (Object^, IComparer^)

 

Compares the current ValueTuple instance to a specified object.

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

private:
virtual int CompareTo(
	Object^ other,
	IComparer^ comparer
) sealed = IStructuralComparable::CompareTo

Parameters

other
Type: System::Object^

The object to compare with the current instance.

comparer
Type: System.Collections::IComparer^

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

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:
© 2017 Microsoft