语言

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设置位数。

实现

适用于