LongExtensions.HasAnyFlag

Extension Method in LongExtensions

Declaration

public static bool HasAnyFlag(this long mask, long flags)

Description

Checks if any of the given flags are set in the bitmask. (mask & flags) != 0

Parameters

maskThe mask to check.
flagsThe flags to check for.

Returns

boolTrue if any of the flags are set in the mask.