Performs a "union" of the two sets, where all the elements in both sets are present. That is, the element is included if it is in either a or b. Neither this set nor the input set are modified during the operation. The return value is a Clone() of this set with the extra elements added in.

Namespace: Iesi.Collections.Generic
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)

Syntax

C#
ISet<T> Union(
	ISet<T> a
)
Visual Basic
Function Union ( _
	a As ISet(Of T) _
) As ISet(Of T)
Visual C++
ISet<T>^ Union(
	ISet<T>^ a
)

Parameters

a
Type: Iesi.Collections.Generic..::..ISet<(Of <(<'T>)>)>
A collection of elements.

Return Value

A new Set containing the union of this Set with the specified collection. Neither of the input objects is modified by the union.

See Also