最佳答案
有了一个列表,你可以做:
list.AddRange(otherCollection);
HashSet中没有add range方法。
将另一个ICollection添加到HashSet的最佳方法是什么?< / p >