Int32.RotateRight(Int32, Int32) 方法

定义

将值向右旋转给定的量。

C#
public static int RotateRight(int value, int rotateAmount);

参数

value
Int32

rotateAmount向右旋转的值。

rotateAmount
Int32

向右旋转的 value 量。

返回

rotateAmount向右旋转value的结果。

实现

适用于

产品 版本
.NET 7, 8, 9, 10