我从游戏解析聊天和我得到这个字符串“榨68 00 00 37 00 45 00 00”C#中出现FormatException了未处理
recipe = recipe.Replace("搾", "");
string[] rElements = new string[8];
rElements = recipe.Split(' ');
int num = int.Parse(rElements[0]);
我得到的最后一行的格式不同的是我不不明白。它表示输入字符串格式不正确。我已经检查过调试器,第一个元素表示它是“68”。任何人都有任何线索发生了什么?
按预期工作,也许你的输入字符串是错误的 – 2011-01-29 03:14:22
什么是输入字符串?你必须提供。 – humblelistener 2011-01-29 03:16:22