EnumTEnumAllFlagsDefined(TEnum) Method

Gets whether every single bit value in flags are defined in the TEnum type, or, when flags is zero, it is checked whether zero is defined in TEnum.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static bool AllFlagsDefined(
	TEnum flags
)

Parameters

flags  TEnum
A flags enum value, whose bits should be checked. It is not checked whether TEnum is really marked by FlagsAttribute.

Return Value

Boolean
, if flags is a zero value and zero is defined, or if flags is nonzero and its every bit has a defined name.

See Also