EnumTEnumIsSingleFlag(TEnum) Method
Gets whether only a single bit is set in value. It is not checked, whether this flag is defined in TEnum.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public static bool IsSingleFlag(
TEnum value
)
Public Shared Function IsSingleFlag (
value As TEnum
) As Boolean
public:
static bool IsSingleFlag(
TEnum value
)
static member IsSingleFlag :
value : 'TEnum -> bool
- value TEnum
- The value to check.
Boolean, if only a single bit is set in
value; otherwise,
.