Click or drag to resize

EAPUtilIsBitMask Method

Tests whether or not the specified value represents a bit-mask. This is typically used when examining enumeration values from an enumeration marked with the FlagsAttribute. The value is considered a bit-mask if it has more than 1 bit set. So, for example, 0x000000ff would be a bit-mask, but 0x0000040 would not. For a non-zero value, this is the inverse of HasExactlyOneBitSet(Int32).

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool IsBitMask(
	int n
)

Parameters

n
Type: SystemInt32
The value to test.

Return Value

Type: Boolean
True if determined to be a mask, else false.
See Also