String strHex = "ABCDEF";
Int32 nHex = Int32.Parse(strHex, NumberStyles.HexNumber);
Byte[] bHex = BitConverter.GetBytes(nHex);
I think what you are looking for. If not, post an update with a more explicit definition of what you are looking for.
source
share