System.Collections.IStructuralEquatable.Equals Method

Determines whether an object is structurally equal to the current instance.

Syntax

public bool Equals (object other, IEqualityComparer comparer)

Parameters

other
The object to compare with the current instance.
comparer
An object that determines whether the current instance and other are equal.

Returns

true if the two objects are equal; otherwise, false.

Remarks

The IStructuralEquatable.Equals(object, IEqualityComparer) method supports custom structural comparison of array and tuple objects. This method in turn calls the comparer object's IEqualityComparer.Equals(object, object) method to compare individual array elements or tuple components, starting with the first element or component. The individual calls to IEqualityComparer.Equals(object, object) end and the IStructuralEquatable.Equals(object, IEqualityComparer) method returns a value either when a method call returns false or after all array elements or tuple components have been compared.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0