Bitmask.HasAnyFlag

Method in Bitmask

Declaration

public bool HasAnyFlag(int flags)

Description

Checks if the bitmask contains any of the flags. (mask & flags) != 0

Parameters

flagsThe flags to check for.

Returns

boolTrue if the bitmask contains any of the flags, false otherwise.