什么是德尔福"的同等学历; SHL"在C#中?

问题描述:

我做在C#中的应用程序,基于Delphi(转换代码),但我发现我不认识的命令(SHL),我想知道是否有任何等同于C#。

I'm making an application in C#, based on Delphi (converting code), but I found a command that I do not recognize (shl), and i want to know if there is any equivalent to C#.

先谢谢了。

SHL 左移。使用 << 对于同样的效果C#运营商

Shl is left shift. Use << C# operator for the same effect.

示例:

uint value = 15;              // 00001111
uint doubled = value << 1;    // Result = 00011110 = 30
uint shiftFour = value << 4;  // Result = 11110000 = 240