Reputation: 6752
I'm converting some Java code to C# and I came across the >> operator. What is that operator called and what is the equivalent in C#?
I'm trying to convert the following code:
final int pointerIndex = (action & ACTION_POINTER_INDEX_MASK) >> ACTION_POINTER_INDEX_SHIFT;
Thanks,
Upvotes: 0
Views: 180
Reputation: 10895
It is a basic shift operator available in many programming languages. In C# it is the same as in Java.
Upvotes: 4