views:

350

answers:

2

Possible Duplicate:
Most common C# bitwise operations

I am looking for bit manipulation reference material for c#. And, OR, XOR, left shift , right shift. setting a bit All operations with bit.

A: 

These are all the standard C-style operators.

http://www.space.unibe.ch/comp_doc/c_manual/C/CONCEPT/bitwise.html

I am not sure if C# has 1's complement.

Edit it does.

http://msdn.microsoft.com/en-us/library/6a71f45d%28VS.71%29.aspx

Daniel A. White
+2  A: 

This was just posted today and should be helpful. It covers a variety of bit operations, and the operations should be translatable directly to C#.

Michael