UInt16.PopCount(UInt16) Metod

Definition

Beräknar antalet bitar som anges i ett värde.

public:
 static System::UInt16 PopCount(System::UInt16 value) = System::Numerics::IBinaryInteger<System::UInt16>::PopCount;
public static ushort PopCount(ushort value);
static member PopCount : uint16 -> uint16
Public Shared Function PopCount (value As UShort) As UShort

Parametrar

value
UInt16

Värdet vars angivna bitar ska räknas.

Returer

Antalet angivna bitar i value.

Implementeringar

Gäller för