M
Michael Davidov
byte []array = {0x00,0x04};
short ashort = BitConverter.ToInt16(array,0);
Console.WriteLine(ashort.ToString());
Why am I wrong to think that this should return a 4 instead of 1024?
Also, is there a way to get a short value of 4 from those 2 bytes
without switching their possition in the byte array?
Thanks for your input,
Michael Davidov
short ashort = BitConverter.ToInt16(array,0);
Console.WriteLine(ashort.ToString());
Why am I wrong to think that this should return a 4 instead of 1024?
Also, is there a way to get a short value of 4 from those 2 bytes
without switching their possition in the byte array?
Thanks for your input,
Michael Davidov