EnumTEnumGetFlagsCount(TEnum) Method
Gets the number of bits set in value.
It is not checked, whether all flags are defined in TEnum.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static int GetFlagsCount(
TEnum value
)
Public Shared Function GetFlagsCount (
value As TEnum
) As Integer
public:
static int GetFlagsCount(
TEnum value
)
static member GetFlagsCount :
value : 'TEnum -> int
- value TEnum
- The value to check.
Int32The number of bits set in
value.