共用方式為


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

傳回

Int32

中的 value 設定位數目。

實作

適用於