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
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)

Syntax

C#
public virtual ISet Union(
	ISet a
)
Visual Basic
Public Overridable Function Union ( _
	a As ISet _
) As ISet
Visual C++
public:
virtual ISet^ Union(
	ISet^ a
)

Parameters

a
Type: Iesi.Collections..::..ISet
A collection of elements.

Return Value

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

Implements

ISet..::..Union(ISet)

See Also