如何在数据表中搜索Col1 ="MyValue"的行中的行
我在想类似的东西
Assert.IsTrue(dataSet.Tables[0].Rows.
FindAll(x => x.Col1 == "MyValue" ).Count == 1);
Run Code Online (Sandbox Code Playgroud)
但当然这不起作用!
我有一个这样的列表:
List<string[]> countryList
Run Code Online (Sandbox Code Playgroud)
并且字符串数组的每个元素是另一个包含3个元素的数组.
所以countryList[0]可能包含数组:
new string[3] { "GB", "United Kingdom", "United Kingdom" };
Run Code Online (Sandbox Code Playgroud)
如何搜索countryList特定阵列上,比如如何搜索countryList的
new string[3] { "GB", "United Kingdom", "United Kingdom" }?
Run Code Online (Sandbox Code Playgroud)