In This Topic
Tests whether a specified bit is set in a bitmask.
Syntax
'Declaration
<PureAttribute()>
Public Shared Function HasBit( _
ByVal As Integer, _
ByVal As Integer _
) As Boolean
[Pure()]
public static bool HasBit(
int ,
int
)
[Pure()]
public:
static bool HasBit(
int ,
int
)
Parameters
- val
- The value to test.
- bit
- The bit (0 - 31) to test.
See Also