GCHandle.Equality(GCHandle, GCHandle) 运算符

定义

返回一个值,该值指示两个 GCHandle 对象是否相等。Returns a value indicating whether two GCHandle objects are equal.

public:
 static bool operator ==(System::Runtime::InteropServices::GCHandle a, System::Runtime::InteropServices::GCHandle b);
public static bool operator == (System.Runtime.InteropServices.GCHandle a, System.Runtime.InteropServices.GCHandle b);
static member ( = ) : System.Runtime.InteropServices.GCHandle * System.Runtime.InteropServices.GCHandle -> bool
Public Shared Operator == (a As GCHandle, b As GCHandle) As Boolean

参数

a
GCHandle

要与 b 参数进行比较的 GCHandle 对象。A GCHandle object to compare with the b parameter.

b
GCHandle

要与 a 参数进行比较的 GCHandle 对象。A GCHandle object to compare with the a parameter.

返回

Boolean

如果 ab 参数相等,则为 true;否则为 falsetrue if the a and b parameters are equal; otherwise, false.

注解

此运算符的等效方法为 GCHandle.EqualsThe equivalent method for this operator is GCHandle.Equals.

适用于