using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
string hex_s = "6A 20 6C 48 6F 59 92 41";
string[] hex_arr = hex_s.Split(' ');
foreach (String hex in hex_arr)
{
int n = Convert.ToInt32(hex, 16);
char ch = (char)n;
Console.WriteLine("hex = {0} : int = {1} : char = {2}", hex, n, ch);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
}
/*
run:
hex = 6A : int = 106 : char = j
hex = 20 : int = 32 : char =
hex = 6C : int = 108 : char = l
hex = 48 : int = 72 : char = H
hex = 6F : int = 111 : char = o
hex = 59 : int = 89 : char = Y
hex = 92 : int = 146 : char = ?
hex = 41 : int = 65 : char = A
*/