ImmutableArray<T>.IStructuralEquatable.Equals(Object, IEqualityComparer) 方法

定义

确定此数组在结构上是否等于指定的数组。Determines whether this array is structurally equal to the specified array.

 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 array to compare with the current instance.

comparer
IEqualityComparer

一个对象,用于确定当前实例在结构上是否与另一个实例相等。An object that determines whether the current instance and other are structurally equal.

返回

如果两个数组在结构上相等,则为 true;否则为 falsetrue if the two arrays are structurally equal; otherwise, false.

实现

注解

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

适用于