Skip to content

SetValue Method ​

Definition ​

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

long SetValue(long value, long valueFlag, int maxFlag = null) ​

csharp
long SetValue(long value, long valueFlag, int maxFlag = null)

Sets a specified flag in the bitmask based on a numeric value Verifies that valueFlag is a valid bitmask flag and sets it

Returns ​

If the valueFlag is valid, returns the updated bitmask value with the flag set, otherwise the unmodified input value