public string HexNumberToString(string InputString) { int len = InputString.Length >> 1; byte[] str = new byte[len]; for (int i = 0; i < len; i++) { string temp = InputString.Substring(i << 1, 2); if (temp.Length > 0) { str[i] = byte.Parse(temp, System.Globalization.NumberStyles.HexNumber); } } return Encoding.Default.GetString(str)); }