語言

Int32.PopCount(Int32) 方法

定義

計算值中所設定的位數。

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

參數

value
Int32

要計數的集合位元數值。

傳回

集合位元 value數。

實作

適用於