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<T1>::CompareTo Method (ValueTuple<T1>)

 

Compares the current ValueTuple<T1> instance to a specified ValueTuple<T1> instance.

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

public:
virtual int CompareTo(
	ValueTuple<T1> other
) sealed

Parameters

other
Type: System::ValueTuple<T1>

The tuple to compare with this instance.

Return Value

Type: System::Int32

A signed integer that indicates the relative position of this instance and other in the sort order, as shown in the following able.

Vaue

Description

A negative integer

This instance precedes other.

Zero

This instance and other have the same position in the sort order.

A positive integer

This instance follows other.

.NET Framework
Available since 4.7
Return to top
Show:
© 2017 Microsoft