当我启动程序时,Visual Studio 2015(我使用WPF和C#)总是给我一个未处理的类型' System.FormatException'发生在mscorlib.dll。
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.
}