多头按位操作 [英] Bitwise operation on longs
本文介绍了多头按位操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试编译此代码:
Int64 itag = BitConverter.ToInt64(temp, 0);
itag &= 0xFFFFFFFFFFFFFC00;
但是,这给了我以下错误:
However this gives me the following error:
运算符'& ='不能应用于类型为'long'和'ulong'的操作数
Operator '&=' cannot be applied to operands of type 'long' and 'ulong'
我该怎么做?
推荐答案
查看全文