Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 24, 2013 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/6067721 to your computer and use it in GitHub Desktop.
Save Fhernd/6067721 to your computer and use it in GitHub Desktop.
Demostración de operador desplazamiento a la izquierda (left shift) en lenguaje C#.
class DesplazamientoIzquierda
{
static void Main()
{
byte byte1 = 7;
byte byte2 = (byte)(byte1 << 3);
Console.WriteLine(byte2); // Imprime: 56
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment