LANGUAGE
Bitwise AND &
Keeps the bits set in both operands. Compare with mask to test that all selected bits are set.
Formal Syntax & Structure
csharp syntaxcsharp
flags & maskWorking Example
Example Snippetcsharp
bool all = (3 & 3) == 3;Keeps the bits set in both operands. Compare with mask to test that all selected bits are set.
flags & maskbool all = (3 & 3) == 3;