📜  c# 将两个列表合并为可查询 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:04.441000             🧑  作者: Mango

代码示例1
var list3 = list1.Concat(list2);

// or

var list4 = list1.Union(list2);
// Union is a set operation - it returns distinct values.

// Concat simply returns the items from the first sequence followed by the items from the second sequence; the resulting sequence can include duplicate items.

// You can think of Union as Concat followed by Distinct.