Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
System
Xml
Bits
ExactlyOne
System.Xml.Bits.ExactlyOne C# (CSharp) Method
Bits Class Documentation
Mostrar archivo
Open project: gbarnett/shared-source-cli-2.0
ExactlyOne()
public
static
method
Returns true if the unsigned integer has exactly one bit set.
public
static
ExactlyOne
(
uint
num
) :
bool
num
uint
return
bool
public static bool ExactlyOne(uint num) { return num != 0 && (num & (num - 1)) == 0; }
Bits
ClearLeast
Count
ExactlyOne
LeastPosition
MoreThanOne