ValueTuple<T1,T2,T3,T4,T5>.Equals ValueTuple<T1,T2,T3,T4,T5>.Equals ValueTuple<T1,T2,T3,T4,T5>.Equals ValueTuple<T1,T2,T3,T4,T5>.Equals Method

定義

傳回值,這個值指出目前的 ValueTuple<T1,T2,T3,T4,T5> 執行個體是否與指定的物件相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> instance is equal to a specified object.

多載

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

傳回值,這個值指出目前的 ValueTuple<T1,T2,T3,T4,T5> 執行個體是否與指定的物件相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> instance is equal to a specified object.

Equals(ValueTuple<T1,T2,T3,T4,T5>) Equals(ValueTuple<T1,T2,T3,T4,T5>) Equals(ValueTuple<T1,T2,T3,T4,T5>) Equals(ValueTuple<T1,T2,T3,T4,T5>)

傳回值,這個值指出目前的 ValueTuple<T1,T2,T3,T4,T5> 執行個體是否與指定的 ValueTuple<T1,T2,T3,T4,T5> 執行個體相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> instance is equal to a specified ValueTuple<T1,T2,T3,T4,T5> instance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

傳回值,這個值指出目前的 ValueTuple<T1,T2,T3,T4,T5> 執行個體是否與指定的物件相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> 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 Object Object Object

與這個執行個體相互比較的物件。The object to compare with this instance.

傳回

如果目前的執行個體和指定的物件相等,則為 true,否則為 falsetrue if the current instance is equal to the specified object; otherwise, false.

備註

obj引數會被視為等於目前的執行個體,在下列情況下:The obj argument is considered to be equal to the current instance under the following conditions:

  • 它是ValueTuple<T1,T2,T3,T4,T5>實值型別。It is a ValueTuple<T1,T2,T3,T4,T5> value type.

  • 其元件會與目前執行個體相同的類型。Its components are of the same types as those of the current instance.

  • 其元件會等於目前的執行個體。Its components are equal to those of the current instance. 每個元件的預設相等比較子來判斷相等。Equality is determined by the default equality comparer for each component.

Equals(ValueTuple<T1,T2,T3,T4,T5>) Equals(ValueTuple<T1,T2,T3,T4,T5>) Equals(ValueTuple<T1,T2,T3,T4,T5>) Equals(ValueTuple<T1,T2,T3,T4,T5>)

傳回值,這個值指出目前的 ValueTuple<T1,T2,T3,T4,T5> 執行個體是否與指定的 ValueTuple<T1,T2,T3,T4,T5> 執行個體相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5> instance is equal to a specified ValueTuple<T1,T2,T3,T4,T5> instance.

public:
 virtual bool Equals(ValueTuple<T1, T2, T3, T4, T5> other);
public bool Equals (ValueTuple<T1,T2,T3,T4,T5> other);
override this.Equals : ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5> -> bool
Public Function Equals (other As ValueTuple(Of T1, T2, T3, T4, T5)) As Boolean

參數

other
ValueTuple<T1,T2,T3,T4,T5> ValueTuple<T1,T2,T3,T4,T5> ValueTuple<T1,T2,T3,T4,T5> ValueTuple<T1,T2,T3,T4,T5>

要與此執行個體相比較的值元組。The value tuple to compare with this instance.

傳回

如果目前的執行個體和指定的元組相等,則為 true,否則為 falsetrue if the current instance is equal to the specified tuple; otherwise, false.

實作

備註

other引數會被視為等於目前的執行個體,在下列情況下:The other argument is considered to be equal to the current instance under the following conditions:

  • 其元件會與目前執行個體相同的類型。Its components are of the same types as those of the current instance.

  • 其元件會等於目前的執行個體。Its components are equal to those of the current instance. 每個元件的預設相等比較子來判斷相等。Equality is determined by the default equality comparer for each component.

適用於