I need bit manipulation guide / reference material for c# [duplicate]

a 夏天 提交于 2019-12-01 12:34:44

问题


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.


回答1:


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#.




回答2:


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



来源:https://stackoverflow.com/questions/1067040/i-need-bit-manipulation-guide-reference-material-for-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!