无法将类型“System.Collections.Generic.List<CsharpHttpHelper.Item.AItem>”隐式转换为“System.Collections.Generic.List<test.AItem>”
新手疑问,谢谢!
[C#] 纯文本查看 复制代码 //创建Httphelper对象HttpHelper http = new HttpHelper();
//创建Httphelper参数对象
HttpItem item = new HttpItem()
{
URL = "http://www.sufeinet.com",//URL 必需项
Method = "get",//URL 可选项 默认为Get
ContentType = "text/html",//返回类型 可选项有默认值
//ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
};
//请求的返回值对象
HttpResult result = http.GetHtml(item);
//获取请请求的Html
string html = result.Html;
List<AItem> alist = HttpHelper.GetAList(html);
问题来源:http://www.sufeinet.com/thread-10046-1-1.html
|