【发布时间】:2011-03-19 00:33:43
【问题描述】:
我有这个方法并在 words.Add(rows); 行上得到上述错误。谁能帮忙?谢谢 - 本
private static IEnumerable<string> LoadWords(String filePath)
{
List<String> words = new List<String>();
try
{
foreach (String line in File.ReadAllLines(filePath))
{
string[] rows = line.Split(',');
words.Add(rows);
}
}
catch (Exception e)
{
System.Windows.MessageBox.Show(e.Message);
}
return words;
}
【问题讨论】:
标签: c#