LANGUAGE
Bitwise OR |
Sets positions that are set in either operand; useful for adding flags without dropping others.
Formal Syntax & Structure
csharp syntaxcsharp
flags | maskWorking Example
Example Snippetcsharp
int flags = 1 | 2;Sets positions that are set in either operand; useful for adding flags without dropping others.
flags | maskint flags = 1 | 2;