hex byte array to integer

  • Thread starter Thread starter David Glover
  • Start date Start date
D

David Glover

Hi,

I am pretty new to c# and was wondering the following:

I have a byte array with hexadecimal values (it is actually the frame
size field extracted from an ID3v2 tag). For example it may read:

ba[0] = 0x0
ba[1] = 0x0
ba[2] = 0x0
ba[3] = 0x10

I need to be able to convert this into an integer. In this case, it is
obviously 16, however I was wondering how you would go about doing
this programatically in c#.

Any suggestions anyone?

Many thanks,
David
 
Back
Top