Bitmask.HasFlag

Method in Bitmask

Declaration

public bool HasFlag(int flag)

Description

Checks if the bitmask contains the flag. (mask & flag) == flag

Parameters

flagThe flag to check for.

Returns

boolTrue if the bitmask contains the flag, false otherwise.