ValueTuple.Equals 方法

定义

返回一个值,该值指示当前 ValueTuple 实例是否与指定的对象相等。Returns a value that indicates whether the current ValueTuple instance is equal to the specified object.

重载

Equals(ValueTuple)

确定两个 ValueTuple 实例是否相等。Determines whether two ValueTuple instances are equal. 此方法始终返回 trueThis method always returns true.

Equals(Object)

返回一个值,该值指示当前 ValueTuple 实例是否与指定的对象相等。Returns a value that indicates whether the current ValueTuple instance is equal to a specified object.

Equals(ValueTuple)

确定两个 ValueTuple 实例是否相等。Determines whether two ValueTuple instances are equal. 此方法始终返回 trueThis method always returns true.

public:
 virtual bool Equals(ValueTuple other);
public bool Equals (ValueTuple other);
override this.Equals : ValueTuple -> bool
Public Function Equals (other As ValueTuple) As Boolean

参数

other
ValueTuple

与当前实例进行比较的值元组。The value tuple to compare with the current instance.

返回

此方法始终返回 trueThis method always returns true.

实现

Equals(Object)

返回一个值,该值指示当前 ValueTuple 实例是否与指定的对象相等。Returns a value that indicates whether the current ValueTuple instance is equal to a specified object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

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

返回

如果 objValueTuple 实例,则为 true;否则为 falsetrue if obj is a ValueTuple instance; otherwise, false.

适用于