EnumTEnumHasFlag(TEnum, UInt64) Method
Gets whether the bits that are set in the flags parameter are set in the specified value.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
[CLSCompliantAttribute(false)]
public static bool HasFlag(
TEnum value,
ulong flags
)
<CLSCompliantAttribute(false)>
Public Shared Function HasFlag (
value As TEnum,
flags As ULong
) As Boolean
public:
[CLSCompliantAttribute(false)]
static bool HasFlag(
TEnum value,
unsigned long long flags
)
[<CLSCompliantAttribute(false)>]
static member HasFlag :
value : 'TEnum *
flags : uint64 -> bool
- value TEnum
- An enumeration value of TEnum type.
- flags UInt64
- An unsigned integer value, whose flags should be checked. It is not checked whether TEnum
is really marked by FlagsAttribute and whether all bits that are set are defined in the TEnum type.
Boolean, if
flags is zero, or when the bits that are set in
flags are set in
value;
otherwise,
.