GCHandle.Equals(Object) Method

Definition

确定指定的 GCHandle 对象是否等同于当前的 GCHandleDetermines whether the specified GCHandle object is equal to the current GCHandle object.

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

Parameters

o
Object

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

Returns

Boolean

如果指定的 GCHandle 对象等于当前的 GCHandle 对象,则为 true;否则为 falsetrue if the specified GCHandle object is equal to the current GCHandle object; otherwise, false.

Remarks

如果两个 GCHandle 对象指向同一内存句柄,则它们相等。Two GCHandle objects are equal if they point to the same memory handle.

Applies to