語言

Byte.PopCount(Byte) 方法

定義

計算值中所設定的位數。

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

參數

value
Byte

要計數的集合位元數值。

傳回

集合位元 value數。

實作

適用於