ValueTuple<T1, T2, T3, T4, T5, T6>::Equals Method (Object^)

 

Returns a value that indicates whether the current ValueTuple<T1, T2, T3, T4, T5, T6> instance is equal to a specified object.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual bool Equals(
	Object^ obj
) override

Parameters

obj
Type: System::Object^

The object to compare with this instance.

Return Value

Type: System::Boolean

true if the current instance is equal to the specified object; otherwise, false.

The obj argument is considered to be equal to the current instance under the following conditions:

  • It is a ValueTuple<T1, T2, T3, T4, T5, T6> 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.

.NET Framework
Available since 4.7
Return to top
Show: