EnumTEnumGetFlagsCount(UInt64) Method
Gets the number of bits set in value or -1 if value does not fall into the range of TEnum.
It is not checked, whether all flags are defined in TEnum.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
[CLSCompliantAttribute(false)]
public static int GetFlagsCount(
ulong value
)
<CLSCompliantAttribute(false)>
Public Shared Function GetFlagsCount (
value As ULong
) As Integer
public:
[CLSCompliantAttribute(false)]
static int GetFlagsCount(
unsigned long long value
)
[<CLSCompliantAttribute(false)>]
static member GetFlagsCount :
value : uint64 -> int
- value UInt64
- The value to check.
Int32The number of bits set in
value, or
-1 if
value does not fall into the range of
TEnum.