Please help me to convert byte array in to int32 using c#.
I used the following code but did not get the exact value
byte[] newArray3 = new[] { buffer[m+2], buffer[m+3], buffer[m], buffer[m+1] };
int t = BitConverter.ToInt32(newArray3,0);
Thanks in advance.
*15 14 13 12 11 10 9 8* * 7 6 5 4 3 2 1 0**
Word1 ...S msb ....buffer[m+1].. . .........buffer[m].................
word2 .....buffer[m+3]............................buffer[m+2]......... lsb
buffer[m]throughbuffer[m+3], and what do you expect the returned value to be?