Skip to content

SetFlag Method ​

Definition ​

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

int SetFlag(int value, int flag) ​

csharp
int SetFlag(int value, int flag)

Set a flag (turn the bit on)

Parameters ​

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

Returns ​

The updated bitmask value with the flag set