尾鱗的程式隨筆
2016年10月20日 星期四
比較兩個List , List Compare, var a = SequenceEqual & Equal ignore order
使用linq函式 1.完全符合 var a = ints1.SequenceEqual(ints2); 2.無視順序 To ignore order, use SetEquals: var a = new HashSet
(ints1).SetEquals(ints2);
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言