搜索列表我有一个列表如下所示:如何用C#
List<string[]> countryList
和字符串数组的每个元素是另一阵列3层的元件。
所以countryList[0]
可能包含数组:
new string[3] { "GB", "United Kingdom", "United Kingdom" };
如何搜索countryList
特定阵列例如如何搜索countryList
为
new string[3] { "GB", "United Kingdom", "United Kingdom" }?
我是否缺少一些东西,因为我没有FirstOrDefault方法在我的清单对象中,我有一个Find和FindAll。我没有SequenceEqual。我正在使用.NET 3.5 –
Bob
2010-08-10 10:59:47
啊,我没有system.linq导入... ups! – Bob 2010-08-10 11:11:31