Skip to content

IsFlagSet Method ​

Definition ​

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

bool IsFlagSet(int value, int flag) ​

csharp
bool IsFlagSet(int value, int flag)

Checks if a specific flag is set in the bitmask

Parameters ​

NameDescription
flagThe zero-based position of the flag to check
valueThe current bitmask value

Returns ​

if the specified flag is set, otherwise