I am making application in c#.Here i want to convert a byte array containing hex values to decimal values.Suppose i have one byte array as
array[0]=0X4E; ar
The BitConverter.ToInt32 method is a good way to do this
if (BitConverter.IsLittleEndian) Array.Reverse(array); //need the bytes in the reverse order int value = BitConverter.ToInt32(array, 0);