Convert Numbers to and from Hexadecimal in C#
Format integers as hex with the X specifier, parse hex strings back with int.Parse or Convert.ToInt32, and convert byte arrays with Convert.ToHexString.
Format integers as hex with the X specifier, parse hex strings back with int.Parse or Convert.ToInt32, and convert byte arrays with Convert.ToHexString.