3
for (int x = 0; x < 50; x++)
{
NSoupClient.Connect("https://steamcommunity.com/gid/" + x)
.UserAgent("Firefox")
.Timeout(10000)
.Get();
}
这段代码会抛出我这个错误(当int是5它总是停):C#System.NullReferenceException NSoup
未处理的类型为“System.NullReferenceException”发生异常NSoup.dll
的【什么是一个NullReferenceException,如何解决呢?(可能的复制http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-我修复它) – mybirthname
我以前见过这个,但什么是空? – nooby