ValueTuple::IStructuralEquatable::Equals Method (Object^, IEqualityComparer^)

 

Returns a value that indicates whether the current ValueTuple instance is equal to a specified object based on a specified comparison method.

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

private:
virtual bool Equals(
	Object^ other,
	IEqualityComparer^ comparer
) sealed = IStructuralEquatable::Equals

Parameters

other
Type: System::Object^

The object to compare with this instance.

comparer
Type: System.Collections::IEqualityComparer^

An object that defines the method to use to evaluate whether the two objects are equal.

Return Value

Type: System::Boolean

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

This member is an explicit interface implementation. It can only be used when the ValueTuplet> instance is cast to an IStructuralEquatable interface. The IEqualityComparer::Equals implementation is called only if other is not null, and if it can be successfully cast to a ValueTuple object.

.NET Framework
Available since 4.7
Return to top
Show: