Skip to content

IsFlagSet Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

bool IsFlagSet(long value, long flag, int maxFlag = null) ​

csharp
bool IsFlagSet(long value, long flag, int maxFlag = null)

Checks if a specific flag is set in the bitmask

Parameters ​

NameDescription
flagThe zero-based position of the flag to check
maxFlagThe maximum flag value to use (Default: 63)
valueThe current bitmask value

Returns ​

if the specified flag is set, otherwise