Array.IStructuralEquatable.Equals(Object, IEqualityComparer) Array.IStructuralEquatable.Equals(Object, IEqualityComparer) Array.IStructuralEquatable.Equals(Object, IEqualityComparer) Method

定义

确定某个对象与当前实例是否相等。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 Object Object

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

comparer
IEqualityComparer IEqualityComparer 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.

适用于