UIntPtr.Sign(UIntPtr) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Calcula o sinal de um valor.
public:
static int Sign(UIntPtr value) = System::Numerics::INumber<UIntPtr>::Sign;
public static int Sign(UIntPtr value);
static member Sign : unativeint -> int
Public Shared Function Sign (value As UIntPtr) As Integer
Parâmetros
- value
-
UIntPtr
unativeint
O valor cujo sinal deve ser calculado.
Devoluções
Um valor positivo se for positivo, value se Zero for zero, e um valor negativo se valuevalue for negativo.
Implementações
Observações
Recomenda-se que uma função retorne 1, 0, e -1, respetivamente.