Array.IStructuralEquatable.Equals(Object, IEqualityComparer) Method

Definition

判斷物件與目前的執行個體是否相等。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);
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

Parameters

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.

Returns

Boolean

如果兩個物件相等則為 true,否則為 falsetrue if the two objects are equal; otherwise, false.

Implements

Remarks

這個成員是明確的介面成員實作。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.

Applies to