閱讀英文

共用方式為


Int64.RotateLeft(Int64, Int32) 方法

定義

將值向左旋轉指定的數量。

C#
public static long RotateLeft(long value, int rotateAmount);

參數

value
Int64

由 左 rotateAmount 旋轉的值。

rotateAmount
Int32

向左旋轉的數量 value

傳回

由 左 rotateAmount 旋轉 value 的結果。

實作

適用於

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