ValueTuple<T1, T2>::Equals Method (ValueTuple<T1, T2>)

 

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

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

public:
virtual bool Equals(
	ValueTuple<T1, T2> other
) sealed

Parameters

other
Type: System::ValueTuple<T1, T2>

The value tuple to compare with this instance.

Return Value

Type: System::Boolean

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

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.

.NET Framework
Available since 4.7
Return to top
Show: