Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
System
Xml
Bits
ExactlyOne
System.Xml.Bits.ExactlyOne C# (CSharp) Метод
Документация по классу Bits
Показать файл
Открыть проект
ExactlyOne()
публичный
статический
Метод
Returns true if the unsigned integer has exactly one bit set.
public
static
ExactlyOne
(
uint
num
) :
bool
num
uint
Результат
bool
public static bool ExactlyOne(uint num) { return num != 0 && (num & (num - 1)) == 0; }
Bits
ClearLeast
Count
ExactlyOne
LeastPosition
MoreThanOne