我想提取div类之间的文本“一些文本在这里”。我正在使用html敏捷性包和c#。/div[@class=\"productDescriptionWrapper\").Descendants("div").Select(x => x.InnerText).ToList();An unhandled exception of type 'System.NullReferenceException'
我知道如果文本
我正在从web服务器请求一些文本,并使用以下代码将其显示在文本框中: Dim theText As String如果我在web浏览器中发出同样的请求,它基本上是即时的。我在其他网站上读到了一些关于代理成员(client.Proxy)需要为空的相关帖子。由于VB.Net不支持null,我将其设置为"Nothing“,但性能没有变化。有没有办法解释为什么这个速度很慢