Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
C#

Bitwise Operators in C#

Manipulate bits with & | ^ ~ <>.

Bitwise Operators in C# — a practical guide to C# bitwise operators with clear examples you can reuse in real projects.

C# Tutorial Series (24/121). Prefer one article? Read the complete C# tutorial.

Short description

Common for flags enums.

Bitwise / flags tip

[Flags] enum Perms { None = 0, Read = 1, Write = 2 }
var p = Perms.Read | Perms.Write;

Leave a reply

Your email address will not be published. Required fields are marked *