参考:http://msdn.microsoft.com/zh-cn/library/bb387090.aspx
本示例演示如何使用 语言集成查询 (LINQ) 和 LINQ to XML 从逗号分隔值...下面的代码对字符串数组执行 LINQ 查询。
在 C# 版本中,该查询使用 let 子句将每个字符串分隔成字段数组。...C#
VB
// Create the text file.
string csvString = @"GREAL,Great Lakes Food Market,Howard Snyder,Marketing...[1]),
new XElement("ContactName", fields[2]),
new XElement("ContactTitle", fields[3])...,
new XElement("Phone", fields[4]),
new XElement("FullAddress",
new XElement