EnumTEnumGetFlagsCount(Int64) 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.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static int GetFlagsCount(
	long value
)

Parameters

value  Int64
The value to check.

Return Value

Int32
The number of bits set in value, or -1 if value does not fall into the range of TEnum.

See Also