- Add
- Count
- Contains
- Comparer
- TrimExcess
- CopyTo
- Clear
- Remove
- ExceptWith
- IntersectWith
- SymmetricExceptWith
- UnionWith
- IsProperSubsetOf
- IsProperSupersetOf
- IsSubsetOf
- IsSupersetOf
- Overlaps
- SetEquals
UnionWith
产生当前集合和过去集合的结合(数组)。将从指定集合(数组)缺失的元素添加到当前集合(数组)。
这个版本处理了实施 ICollection<T>接口的集合。
void UnionWith(
|
处理数组的版本。
void UnionWith(
|
参数
*collection
[in] 与当前集合一致的集合。
&collection[]
[in] 与当前集合一致的数组。
注意
这个结果被写入当前集合(数组)。