IntPtr.IsNegative(IntPtr) 方法

定义

确定值是否为负值。

public:
 static bool IsNegative(IntPtr value) = System::Numerics::INumberBase<IntPtr>::IsNegative;
public static bool IsNegative (IntPtr value);
static member IsNegative : nativeint -> bool
Public Shared Function IsNegative (value As IntPtr) As Boolean

参数

value
IntPtr

nativeint

返回

Boolean

true 如果 value 为负值,则为负数;否则为 false

实现

注解

返回值 false 并不意味着 IsPositive(TSelf) 将返回 true。 非零b的复数不是正数或负数 a + bi

适用于