IntPtr.Sign(IntPtr) Método

Definição

Calcula o sinal de um valor.

public:
 static int Sign(IntPtr value) = System::Numerics::INumber<IntPtr>::Sign;
public static int Sign (IntPtr value);
static member Sign : nativeint -> int
Public Shared Function Sign (value As IntPtr) As Integer

Parâmetros

value
IntPtr

nativeint

Retornos

Int32

Um valor positivo se value for positivo, Zero se value for zero e um valor negativo se value for negativo.

Implementações

Comentários

É recomendável que uma função retorne 1, 0e -1, respectivamente.

Aplica-se a