Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ISet.Union Method

Performs a "union" of the two sets, where all the elements in both sets are present.

[Visual Basic]
Public Sub Union( _
   ByVal setOne As ISet _
ISet Union(
   ISet setOne


A collection of elements.

Return Value

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


That is, the element is included if it is in either setOne or this set. 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.

See Also

ISet Interface | Spring.Collections Namespace