Show/Hide Toolbars

XSharp

X# uses the following shift operators:

 

Operator

Example

Meaning

>>

x >> y

shift bits right. If the left operand is signed, then left bits are filled with the sign bit. If the left operand is unsigned, then left bits are filled with zero.

<<

x << y

shift bits left and fill with zero on the right.

 

Note that shift operators are only supported on integral numeric types