I'm currently reading a file and wanted to be able to convert the array of bytes obtained from the file into a short array.
How would I go about doing this?
One possibility is using Enumerable.Select:
var shorts = bytes.Select(b => (short)b).ToArray();
Another is to use Array.ConvertAll:
var shorts = Array.ConvertAll(bytes, b => (short)b);