IntExtensions.HasFlag
Extension Method in IntExtensions
Declaration
public static bool HasFlag(this int mask, int flag)Description
Checks if a given flag is set in the bitmask. (mask & flag) == flag
Parameters
| mask | The mask to check. |
| flag | The flag to check for. |
Returns
| bool | True if the flag is set in the mask. |