EnumTEnumIsSingleFlag(Int64) 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: 8.1.0
C#
public static bool IsSingleFlag(
	long value
)

Parameters

value  Int64
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