What does the operator "<<" mean in C#?

Posted by Kurru on Stack Overflow See other posts from Stack Overflow or by Kurru
Published on 2010-01-05T16:42:07Z Indexed on 2010/04/07 1:13 UTC
Read the original article Hit count: 340

Filed under:
|

I was doing some basic audio programming in C# using the NAudio package and I came across the following expression and I have no idea what it means, as i've never seen the << operator being used before. So what does << mean?

Please give a quick explaination of this expression.

short sample = (short)((buffer[index + 1] << 8) | buffer[index + 0]);

© Stack Overflow or respective owner

Related posts about c#

Related posts about operators