Int32.PopCount(Int32) Metodo

Definizione

Calcola il numero di bit impostati in un valore.

public:
 static int PopCount(int value) = System::Numerics::IBinaryInteger<int>::PopCount;
public static int PopCount(int value);
static member PopCount : int -> int
Public Shared Function PopCount (value As Integer) As Integer

Parametri

value
Int32

Valore i cui bit impostati devono essere conteggiati.

Valori restituiti

Numero di bit impostati in value.

Implementazioni

Si applica a