語言

UInt16.PopCount(UInt16) 方法

定義

計算值中所設定的位數。

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

參數

value
UInt16

要計數的集合位元數值。

傳回

集合位元 value數。

實作

適用於