Bitmask.Has

Method in Bitmask

Declaration

public bool Has(int n)

Description

Checks if the nth bit of the bitmask is set.

Parameters

nThe nth bit to check for.

Returns

boolTrue if the nth bit is set, false otherwise.