-3
Wenn ich das Programm starte, gibt Visual Studio 2015 (ich verwende WPF und C#) immer eine nicht behandelte Ausnahme des Typs 'System.FormatException' in mscorlib.dll aufgetreten.Unbehandelte Ausnahme vom Typ 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.
}