我写了一段代码:
do
{
string html = new StreamReader(response3.GetResponseStream(),
Encoding.UTF8).ReadToEnd();
if (html.Contains("link-censored"))
{
log("[!] Banned link\r\n");
return -2; // delete url from txt
}
else if (html.Contains("data-with-image"))
{
log("[+] Add link\r\n");
}
else
{
log("[?] Smthng wrong with link\r\n");
return -2; //-3
}
}
while (html.Contains("data-with-image"));
但我有一个错误名称'html'在最后一行的当前上下文中不存在。