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

Nikolaos picture Nikolaos · Dec 10, 2009 · Viewed 14.6k times · Source

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

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

Answer

Lucero picture Lucero · Dec 10, 2009

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.