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

定义

返回一个值,该值指示当前 ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 实例是否与指定的对象相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance is equal to a specified object.

重载

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

返回一个值,该值指示当前 ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 实例是否与指定的对象相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance is equal to a specified object.

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

返回一个值,该值指示当前 ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 实例是否与指定的 ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 实例相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance is equal to a specified ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

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

返回一个值,该值指示当前 ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 实例是否与指定的对象相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 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,T6,T7,TRest>值类型。It is a ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 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,T6,T7,TRest>) Equals(ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>) Equals(ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>) Equals(ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>)

返回一个值,该值指示当前 ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 实例是否与指定的 ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> 实例相等。Returns a value that indicates whether the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance is equal to a specified ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

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

参数

返回

如果当前实例等于指定元组,则为 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.

适用于