What is the equivalent (in C#) of Java's >>> operator?
(Just to clarify, I'm not referring to the >> and << operators.)
What is the equivalent (in C#) of Java's >>> operator?
(Just to clarify, I'm not referring to the >> and << operators.)
Upon reading this, I hope my conclusion of use as follows is correct. If not, insights appreciated.
Java
i >>>= 1;
C#:
i = (int)((uint)i >> 1);
C# 11 and later supports >>> Unsigned right shift operator