-3
当我启动该程序时,Visual Studio 2015(我使用WPF和C#)总是给我一个mscorlib.dll中发生的类型'System.FormatException'的未处理异常。未处理的异常类型System.FormatException
string ascii = string.Empty;
for (int i = 0; i < dec.Length; i += 3)
{
ascii += Convert.ToChar(Convert.ToByte(dec.Substring(i, 3))); // The exception occurs here.
}