Equivalent of Java triple shift operator (>>>) in C#?

前端 未结 6 2100
轻奢々
轻奢々 2020-12-15 17:10

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

(Just to clarify, I\'m not referring to the >> and <<

6条回答
  •  遥遥无期
    2020-12-15 17:21

    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.

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

提交回复
热议问题