EAPUtilHasExactlyOneBitSet Method |
Tests whether or not the specified value has more than one bit set.
This is typically used when examining enumeration values from an enumeration
marked with the
FlagsAttribute.
For a non-zero value, this is the inverse of
IsBitMask(Int32).
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool HasExactlyOneBitSet(
int n
)
Public Shared Function HasExactlyOneBitSet (
n As Integer
) As Boolean
Parameters
- n
- Type: SystemInt32
The value to test.
Return Value
Type:
BooleanTrue if more than one bit is set, else false.
See Also