EnumTEnumGetFlagsMask Method

Gets a TEnum value where all defined single flag values are set.

Definition

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

Return Value

TEnum
A TEnum value where all defined single flag values are set.

Remarks

Flag values are the ones whose binary representation contains only a single bit.

It is not checked whether TEnum is really marked by FlagsAttribute.

See Also