UIntPtr.Equality(UIntPtr, UIntPtr) 运算符

定义

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

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

参数

value1
UIntPtr

unativeint

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

value2
UIntPtr

unativeint

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

返回

Boolean

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

实现

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

注解

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

适用于