UnionWith.md 1.0 KB

#unity/日常积累

定义

命名空间:

System.Collections.Generic

程序集:

System.Collections.dll

修改当前 HashSet 对象以包含存在于该对象中、指定集合中或两者中的所有元素。

参数

other

IEnumerable

要与当前的 HashSet 对象进行比较的集合。

[](https://learn.microsoft.com/zh-cn/dotnet/api/system.collections.generic.hashset-1.unionwith?view=net-8.0#--)

实现

UnionWith(IEnumerable)