Hex to Ascii conversion
The following code sample converts the hex string to ascii codes.
//You can use the Convert.ToInt32(string, base) to get the number value of a hexadecimal string
int n = Convert.ToInt32(”FF”, 16);
//To convert it to a character, simply cast the integer to char
char c = (char)n;
//To convert an integer to character the function Convert.ToChar() can also be used.
char c = Convert.ToChar(n);
