IntPtr.Equality(IntPtr, IntPtr) 运算符

定义

确定 IntPtr 的两个指定的实例是否相等。

public:
 static bool operator ==(IntPtr value1, IntPtr value2);
public:
 static bool operator ==(IntPtr value1, IntPtr value2) = System::Numerics::IEqualityOperators<IntPtr, IntPtr>::op_Equality;
public static bool operator == (IntPtr value1, IntPtr value2);
static member ( = ) : nativeint * nativeint -> bool
Public Shared Operator == (value1 As IntPtr, value2 As IntPtr) As Boolean

参数

value1
IntPtr

nativeint

要比较的第一个有符号整数。

value2
IntPtr

nativeint

要比较的第二个带符号整数。

返回

Boolean

如果 value1 等于 value2,则为 true否则为 false

实现

System.Numerics.IEqualityOperators`2.op_Equality(`0,`1)

注解

此运算符的等效方法为 IntPtr.Equals(Object)

适用于