编码:
catch(Exception ex)
{
if (ex is WebException)
{
wccfg.failedUrls++; // i think you forgot this
return csFiles;
}
else
{
throw new Exception("");
wccfg.failedUrls++;
return csFiles;
}
}
在第二个 wccfg(another class) 上,我看到绿线说检测到无法访问的代码。我应该将此行移到 throw new Exception 行上方吗?