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

定义

确定某个对象与当前实例是否相等。

 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);
abstract member System.Collections.IStructuralEquatable.Equals : obj * System.Collections.IEqualityComparer -> bool
override this.System.Collections.IStructuralEquatable.Equals : obj * System.Collections.IEqualityComparer -> bool
Function Equals (other As Object, comparer As IEqualityComparer) As Boolean Implements IStructuralEquatable.Equals

参数

other
Object

要与当前实例进行比较的对象。

comparer
IEqualityComparer

一个对象,用于确定当前实例和 other 是否相等。

返回

Boolean

如果两个对象相等,则为 true;否则为 false

实现

注解

此成员是显式接口成员的实现。 它只能在 Array 实例被强制转换为 IStructuralEquatable 接口时使用。

适用于