IntPtr.IsEvenInteger(IntPtr) Metodo

Definizione

Determina se un valore rappresenta un numero integrale pari.

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

Parametri

value
IntPtr

nativeint

Restituisce

Boolean

true se value è un intero pari; in caso contrario, false.

Implementazioni

Commenti

Questo metodo gestisce correttamente i valori a virgola mobile e quindi 2.0 restituirà true mentre 2.2 restituirà false.

Un valore restituito di false non implica che IsOddInteger(TSelf) restituirà true. Un numero con una parte frazionaria, ad esempio , 3.3non è pari o dispari.

Si applica a