IShiftOperators<TSelf,TOther,TResult>.RightShift(TSelf, TOther) Operator

Definition

Shifts a value right by a given amount.

C#
public static abstract TResult operator >>(TSelf value, TOther shiftAmount);

Parameters

value
TSelf

The value that is shifted right by shiftAmount.

shiftAmount
TOther

The amount by which value is shifted right.

Returns

TResult

The result of shifting value right by shiftAmount.

Remarks

This operation is meant to perform a signed (otherwise known as an arithmetic) right shift on signed types.

Applies to

Product Versions
.NET 7, 8, 9, 10