我有一个Foreach循环:
Foreach(htmlnode node in SOMETHING)
{
var link = node.GetAttributeValue("href", "");
Console.WriteLine(link);
}
该循环显示标签列表,如:
http://ca1006761246.trustpass.alibaba.com/contactinfo.html
http://ca1006761246.trustpass.alibaba.com/contactinfo.html
http://ir100058530.trustpass.alibaba.com/contactinfo.html
http://ir100058530.trustpass.alibaba.com/contactinfo.html
http://tjyixuan.en.alibaba.com/contactinfo.html
http://tjyixuan.en.alibaba.com/contactinfo.html
http://alchemyfood.en.alibaba.com/contactinfo.html
http://alchemyfood.en.alibaba.com/contactinfo.html
http://wuhueasy.en.alibaba.com/contactinfo.html
如何分别选择和存储每一行,如:
line1:http://ca1006761246.trustpass.alibaba.com/conta
如何关注consoleApplication程序的结果