語言

IntPtr.IsPositive(IntPtr) 方法

定義

判斷值是否為正數。

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

參數

value
IntPtr

nativeint

要檢查的值。

傳回

true如果value是正數;否則,。 false

實作

備註

返回值 false 不代表會 IsNegative(TSelf) 返回 true。 複數 a + bi ,對於非零 b,既非正也非負數

適用於