如何选择一行Result Console应用程序

时间:2015-04-01 18:43:20

标签: console-application

我有一个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程序的结果

0 个答案:

没有答案