Skip to content

RemoveValue Method ​

Definition ​

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

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

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

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

Returns ​

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