搜索列表我有一個列表如下所示:如何用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