Java的三重移位运算符等效(GT;>>)在C#中? [英] Equivalent of Java triple shift operator (>>>) in C#?

查看:219
本文介绍了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#中,你可以使用无符号整数类型,然后将<< >> 做你的期望。轮班运营商的 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.

这篇关于Java的三重移位运算符等效(GT;&GT;&GT;)在C#中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆