C# 2個List比較差異 (Linq Excep)
List<string> strList1 = new List<string>(){"a", "b", "c", "d"};
List<string> strList2 = new List<string>() { "a", "b", "f", "e"};
var strList3 = strList1.Except(strList2).ToList();
strList1排除strList2的資料, 結果為 c, d
ref web:
https://www.cnblogs.com/xinianxinqix/p/9204534.html
留言
張貼留言