Array.IStructuralEquatable.Equals(Object, IEqualityComparer) 方法

定义

确定某个对象与当前实例是否相等。Determines whether an object is equal to the current instance.

 virtual bool System.Collections.IStructuralEquatable.Equals(System::Object ^ other, System::Collections::IEqualityComparer ^ comparer) = System::Collections::IStructuralEquatable::Equals;
bool IStructuralEquatable.Equals (object other, System.Collections.IEqualityComparer comparer);
Function Equals (other As Object, comparer As IEqualityComparer) As Boolean Implements IStructuralEquatable.Equals

参数

other
Object

要与当前实例比较的对象。The object to compare with the current instance.

comparer
IEqualityComparer

一个对象,用于确定当前实例和 other 是否相等。An object that determines whether the current instance and other are equal.

返回

如果两个对象相等,则为 true;否则为 falsetrue if the two objects are equal; otherwise, false.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 Array 实例被强制转换为 IStructuralEquatable 接口时使用。It can be used only when the Array instance is cast to an IStructuralEquatable interface.

适用于