ValueTuple.CompareTo(ValueTuple) 方法

定义

将当前 ValueTuple 实例与指定的 ValueTuple 实例进行比较。Compares the current ValueTuple instance to a specified ValueTuple instance.

public:
 virtual int CompareTo(ValueTuple other);
public int CompareTo (ValueTuple other);
abstract member CompareTo : ValueTuple -> int
override this.CompareTo : ValueTuple -> int
Public Function CompareTo (other As ValueTuple) As Integer

参数

other
ValueTuple

要与当前实例进行比较的对象。The object to compare with the current instance.

返回

此方法始终返回 0。This method always returns 0.

实现

异常

other 不是 ValueTuple 实例。other is not a ValueTuple instance.

注解

Because a ValueTuple instance has no elements, any two ValueTuple instances are considered to be equivalent.

适用于