Lets say I have a byte array defined like this:
byte[] byteArray = { 0x08, 0x00 };
I need to combine the elements in the array to create:
0x0800
Then convert that to an int:
2048
Something like this:
private static int GetMessageType(byte[] byteArray)
{
if(byteArray.Length != 2)
throw new ArgumentOutOfRangeException("byteArray");
throw new NotImplementedException();
}