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.

傳回

如果 trueobj 執行個體,則為 ValueTuple,否則為 falsetrue if obj is a ValueTuple instance; otherwise, false.

適用於