错误一直说“startIndex不能大于字符串的长度。参数名称:startIndex”
IntializedPorts[i] = int.Parse(ports[i].ToString().Substring(105, 106));
//I tried this too
IntializedPorts[i] = int.Parse(ports[i].ToString().Substring(105, 1));
//this works, this gets the first number in the string that would be five
IntializedPorts[i] = int.Parse(ports[i].ToString().Substring(0, 1));
//我正在尝试子串的字符串,我正在尝试获取字符串中ipaddress末尾的数字7
5b5bfdfe-6eb1-4b10-80af-cf4d9f1010fe3fc8ffa1-c16b-4d7b-9e55-1e88dfe15277FastTrackVirusSoftware192.168.6.17TCP/IPYESReady8/4/2013 1:07:43 PM9/1/2013 1:07:43 PM