C# List集合合并
List<
int
> listA =
new
List<
int
> {1,2,3,5,7,9};
List<
int
> listB =
new
List<
int
> {13,4,17,29,2};
List<
int
> Result = listA.Union(listB).ToList<
int
>();
//剔除重复项
List<
int
> Result = listA.Concat(listB).ToList<
int
>();
//保留重复项