GenericPair<TValue1,TValue2>.Equals(Object) 方法

定义

确定两个 GenericPair<TValue1,TValue2> 对象是否相等。Determines if two GenericPair<TValue1,TValue2> objects are equal.

public:
 override bool Equals(System::Object ^ _Right_arg);
public override bool Equals (object _Right_arg);
override this.Equals : obj -> bool
Public Overrides Function Equals (_Right_arg As Object) As Boolean

参数

_Right_arg
Object

要与当前 GenericPair<TValue1,TValue2> 对象进行比较的 GenericPair<TValue1,TValue2> 对象。The GenericPair<TValue1,TValue2> object to compare with the current GenericPair<TValue1,TValue2> object.

返回

Boolean

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

注解

有关详细信息,请参阅 operator = = (对) (STL/CLR) For more information, see operator== (pair) (STL/CLR).

适用于