EnumTEnumIsSingleFlag(UInt64) Method

Gets whether only a single bit is set in value. It is not checked, whether this flag is defined in TEnum.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
[CLSCompliantAttribute(false)]
public static bool IsSingleFlag(
	ulong value
)

Parameters

value  UInt64
The value to check.

Return Value

Boolean
, if value falls into the range of TEnum range and only a single bit is set in value; otherwise, .

See Also