public WvSession(string server)
{
this.server = server;
string str = SendCommand("open.cgi");
Match m = Regex.Match(str, "s:=(.+)"); //错误代码
if (m.Success)
connectionId = m.Groups[1].Value;
}
求大神解释一下怎么回事
------解决思路----------------------
str ==null
------解决思路----------------------
ArgumentNull,参数str为null
------解决思路----------------------
string str = SendCommand("open.cgi");
if(!string.IsNullOrEmpty(str))
{
Match m = Regex.Match(str, "s:=(.+)"); //错误代码
}