Java的三重移位运算符等效(GT;>>)在C#中?

问题描述:

什么是等效的(在C#),Java的>>> 运营商

What is the equivalent (in C#) of Java's >>> operator?

(只是为了澄清,我不是指>> << 运营商)

(Just to clarify, I'm not referring to the >> and << operators.)

在C#中,你可以使用无符号整数类型,然后将&LT;&LT; &GT;&GT; 做你的期望。轮班运营商的 MSDN文档给您的详细信息。

In C#, you can use unsigned integer types, and then the << and >> do what you expect. The MSDN documentation on shift operators gives you the details.

由于Java没有(从字符除外),这种额外的运营商成为必要支持无符号整数。

Since Java doesn't support unsigned integers (apart from char), this additional operator became necessary.