0

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.

Community
  • 1
  • 1
Learner
  • 2,556
  • 11
  • 33
  • 38

2 Answers2

2

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
  • 54,279
  • 5
  • 125
  • 144
0

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
  • 187,200
  • 47
  • 362
  • 445