Set DocumentationUnion With Method
Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both.
Definition
Namespace: XMLCommentsExamples.DocumentationInheritance
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public void UnionWith(
IEnumerable<int> other
)VB
Public Sub UnionWith (
other As IEnumerable(Of Integer)
)C++
public:
virtual void UnionWith(
IEnumerable<int>^ other
) sealedF#
abstract UnionWith :
other : IEnumerable<int> -> unit
override UnionWith :
other : IEnumerable<int> -> unit Parameters
- other IEnumerableInt32
- The collection to compare to the current set.
Implements
ISetTUnionWith(IEnumerableT)Exceptions
| ArgumentNullException | other is . |